LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Listing uninstalled package names with a given pattern? (http://www.linuxquestions.org/questions/debian-26/listing-uninstalled-package-names-with-a-given-pattern-4175455489/)

littlebigman 03-25-2013 06:19 AM

Listing uninstalled package names with a given pattern?
 
Hello

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 07:22 AM

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

Regards

cynwulf 03-25-2013 08:51 AM

Or you may prefer the results/layout of:

Code:

$ aptitude search foo

TobiSGD 03-25-2013 09:04 AM

Code:

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
Code:

man apt-cache

littlebigman 04-11-2013 05: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 06: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.

Regards


All times are GMT -5. The time now is 07:23 PM.