Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How can I download deb from a PPA?

Writer Emily Wong

How can I download deb package from a PPA?

3

3 Answers

This is an example to download a deb file.

This can be done. But it need not be, if you add a PPA to the system.

e.g.:

sudo apt-add-repository ppa:

But let's go on with the example of downloading.

Go to the PPA page, e.g. “Inkscape Developers” team

4

Thanks to "A.B." - this is useful - an easier way is to just construct the URL from the PPA, so for ppa:inkscape.dev/stable
the URL is:
inkscape.dev/+archive/ubuntu/stable/+packages

This gives the list of packages where you can choose the package for your distribution.
You can do this with a script - example: create script ppa.sh containing:

echo $* | awk -F/ '{ sub(".*ppa:","",$0) print ""$1"/+archive/ubuntu/"$2"/+packages" }'

Any of the following will then work:

./ppa.sh
./ppa.sh ppa:
./ppa.sh apt-add-repository ppa:
./ppa.sh sudo apt-add-repository ppa:

to give:

I just needed this too, but wanted an automated way to get the latest version of the .deb, without needing a browser every time.

Here's a full list of commands that you can put in a script and which always gets you the latest version .deb from the phpmyadmin ppa, whatever the latest version is at the time (replace nijel/phpmyadmin with the source of the ppa you're interested in):

sudo add-apt-repository -y ppa:nijel/phpmyadmin
sudo apt-get update
cd /tmp
apt-get download phpmyadmin
sudo add-apt-repository -y -r ppa:nijel/phpmyadmin
sudo apt-get update

You will then have some phpmyadmin*.deb file in /tmp. The above will add and then remove the phpmyadmin ppa source from your system. If you don't want it removed, then just comment the last two lines.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy