PDA

View Full Version : apt-get - list of software?


welly
March 2nd, 2005, 11:22 AM
Hi all,

Question regarding apt-get. I understand it's the command line alternative to Synaptic, and I've noticed that people have recommended its use. However! Should I want XYZ application downloaded and installed, how would I know what name to use with apt-get? Is there an apt-get --list or something similar? Is there a page anywhere which lists all the software available using apt-get? I wanted to get hold of mplayer which a few people have recommended so tried apt-get install mplayer. Didn't work unfortunately. Basically how do I know the name of the package to use with apt-get for any application, not necessarily mplayer?

Cheers!

Welly

Ryujin
March 2nd, 2005, 11:25 AM
It may not come stock with ubuntu, but you can run aptitude on the command line for a complete list of the tree

mike998
March 2nd, 2005, 01:09 PM
apt-cache search <program name>
That will usually give you a list of programs with that word in the title.

rosslaird
March 2nd, 2005, 03:54 PM
You can search for packages on the web by going here:

http://higgs.djpig.de/ubuntu/www/

You can enable the mplayer sources in /etc/apt/sources.list by adding this:

deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb ftp://ftp.nerim.net/debian-marillat/ unstable main
deb ftp://ftp.nerim.net/debian-marillat/ testing main

Ross

Ryujin
March 2nd, 2005, 04:00 PM
Won't mixing repositories like that break stuff?

rosslaird
March 2nd, 2005, 04:15 PM
Not usually (*usually*).

Nerim has mostly mplayer-related stuff, so it's pretty safe. If you were to add the debian unstable sources, on the other hand, that might break stuff. One way to be safe (safer) is to use the apt-get command line, which will typically show if there are going to be problems. So, after adding the nerim sources for mplayer, you could run:

sudo apt-get update
sudo apt-get install mplayer

It might ask you to choose between versions. Choose the version you want and run the install command again. Look for anything that might be removed or replaced or upgraded. There might be new stuff since your last Ubuntu upgrade, and if you're worried about that just disable all sources except nerim for this procedure (put a # at the beginning of the line of each source, and it will be skipped). That way, apt will only see the mplayer sources and you will get a very nice and small snapshot of what's being done. After mplayer is installed, re-enable the ubuntu sources and upgrade again. You can also use so-called "apt-pinning" to make sure that apt will never install anything over your ubuntu versions (billions of posts about how to do this are on the web).

I don't typically use pinning; I just watch my upgrades carefully while they're being done by apt. Besides, if something breaks you can almost always fix it. That said, in three years (in Debian and Ubuntu) I've never had any serious breakage issues. If something comes online that will break something else, it's usually fixed quickly, or there is a workaround made available (there was a situation with kde audio libraries a while back, and it was fixed the same day).