Without Ubuntu Software Center in Lubuntu I was unable to edit opening apt links in any program in Firefox (see this question) After installing Ubuntu Software Center, that problem is solved, but could I use other program instead of Ubuntu Software Center for the same purpose? I find it too heavy, and to install I prefer the Terminal, gdebi, Lubuntu Software Center or the Synaptic.
(Now that I have the apt option in Firefox/Preferences/Applications, I try to change Ubuntu Software Center to Lubuntu Software Center but this does not change the option.)
But a very simple graphical apt-get-type installer called AptURL does.
sudo apt-get install apturl
The other option is to use a custom script such as green7's answer
But to be browser-independent, what you really need is:
You can change the Action in Preferences > Applications from Ubuntu Software Center to this simple shell script.
Ubuntu Software Center
lxterm -e "sudo apt-get install $toInstall; read"
Save this to some file, say aptFirefox.sh, and make it executable by running:
chmod +x /path/to/aptFirefox.sh
Now you can replace Ubuntu Software Center with aptFirefox.sh.
Now whenever you click on any apt link, it will show a terminal window asking for your password.
After you correctly enter your password, it will install the package.
Note that you can use xterm in place of lxterm.
I would like to install some of the things on the Ubuntu Software Center via command line (apt-get). Is this possible? If so does anyone have the url handy to add to sources.list? I can't seem to find this documented anywhere. Looking for something like:
deb http://apps.ubuntu.com/ precise main
> edit <
Finding the package name worked great for most free apps.
Is there a difference if it's a commercial application (even though it's free)? I'm specifically interested in:
The version info contains: perforce-version-management 2012.3+1-0ubuntu1 However, 'apt-cache search perforce' or 'apt-cache search perforce-version-management' don't turn up this app.
You just have to find out which name the application you want to install has. There is no PPA.
When you click on an application in the USC, you just can scroll down and see the package name.
(look under version)