How can I download deb from a PPA?
Emily Wong
How can I download deb package from a PPA?
33 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
Use the link eg. Inkscape Stable
Use the link View package details
Use the link eg. inkscape - 0.91.0+47~ubuntu15.04.1
Use the link eg. inkscape_0.91.0+47~ubuntu15.04.1_amd64.deb
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 updateYou 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.