-   Debian (
-   -   Listing uninstalled package names with a given pattern? (

littlebigman 03-25-2013 07:19 AM

Listing uninstalled package names with a given pattern?

I often need to query the repositories to find if a given application is available.

But "apt-file list | grep -i myapp" returns so many hits that it's useless.

For instance, how would I be able to find the name of the OpenSSHd server for Debian, without also getting all the libraries that have "ssh" in them?

Thank you.
Edit: "apt-cache search myapp" doesn't work either, as "apt-cache search ssh" returned items like "weirdx - X server in Java".

Edit: This seems to do the job: "apt-cache search ssh | grep ssh"

ukiuki 03-25-2013 08:22 AM

Try apt-cache search <app> , don't forget to update the list first with apt-get update.


cynwulf 03-25-2013 09:51 AM

Or you may prefer the results/layout of:


$ aptitude search foo

TobiSGD 03-25-2013 10:04 AM


apt-cache -n search NAME
will only give packages as result that have NAME in the package name.

For more info on options of apt-cache try

man apt-cache

littlebigman 04-11-2013 06:00 AM

Thanks for the tips.

While "aptitude search foo" does only return applications that have "foo" in their name, "apt-cache -n search foo" also returns those that have "foo" in the description, eg. "dropbear - lightweight SSH2 server and client".

ukiuki 04-16-2013 07:57 AM

"foo" means whatever name you want to search for, not "foo", but lets say you want a text editor, so you search for vi or nano or jed and so on.


All times are GMT -5. The time now is 10:14 AM.