How to install ppa packages in an apt-get style
Solution 1
Using add-apt-repository
(or adding the deb
lines to /etc/apt/sources.list
manually, which is more-or-less the same thing) is the apt-get way. Apt needs to know what packages are available for installation, and for that to work it has to have a list of installable repositories. It's simply not feasible to search Launchpad for all PPAs for the most recent version, nor is that safe — I could create vim 99999999-9999 which hoses your entire system (debs install as root). Installing software from third party repositories is something you should be forced to think about.
Solution 2
These are three simple commands, provided that you know what the PPA is:
sudo add-apt-repository ppa:george-edison55/george-edison
sudo apt-get update && upgrade
sudo apt-get install stackapplet
(name of application that you want to install)
Solution 3
There isn't such a tool, because that is not the way ppa's work, nor is it safe. You could potential write a script that locates the ppa and pulls the package from it directly, but you would have to note that you can easily break your system that way. Sometimes the longer, more complicated route, is the safer way to do things, and better to be safe than sorry :).
Solution 4
ppasearch might help you find PPAs in a CLI environment.
Solution 5
As indicated clearly in the other answers, what you're asking for would be unsafe. Repositories allow you to not only get software, but to regularly get updates to the software to fix security holes and bugs. What you ask for would be like googling the whole web to find a package and blindly downloading it and installing it. That's a sure way to not only risk getting malware, but, even for good packages, to leave yourself open to security issues that are found later and updated in the ppa, which you would not be tracking.
So you do need to search to find a ppa, using the tools mentioned in the other answers. You should then personally vet the reputation of the ppa, since it could easily take over your whole system if you add it.
If you find a ppa that you trust, use add-apt-repository as described elsewhere.
But another aspect of your question is how to get just a set of specified packages from it. For that, see the info at How do I cherry pick packages from a PPA? - Ask Ubuntu. If you want an easier solution, you should file an enhancement bug request on launchpad with a good use case.
Related videos on Youtube
1passenger
Updated on September 17, 2022Comments
-
1passenger over 1 year
I want to install ppa packages in a
sudo apt-get install <program>
style. I don't want to google for the ppa name and I don't want to executeadd-apt-repository
before executing apt-get. I just want to install a ppa package with one command likeppa install vim
to get the newest vim ppa version.Can you recommend me a tool?
-
1passenger over 13 yearsThanks for your answer. :) I know that this can cause some problems. But I can't believe that there is no solution for that. ;)
-
1passenger over 13 yearsMaybe I know the name of the software (stackapplet in this case). But I also have to know the ppa-name "ppa:george-edison55/george-edison" to install the newest version. Without google I had no chance to get that name. That's not very comfortable. (I know how google works, but I want to get the name without using a browser)
-
Jason Southwell over 13 yearswell if you want the problems, be my guest and write a script for it :) lol.
-
Jason Southwell over 13 yearsI think what you are really looking for is a new feature for the software center and for that you should report a bug :).
-
1passenger over 13 yearsI don't want the problems, I want a solution. ;-)))