what is the 'yum search' analogue on debian?

Asked by sds

how do I search for a package by keyword?
on fedora:
if a package is installed, I would do "rpm -qa | grep foo".
if a package is NOT installed, I would do "yum search foo" (actually, the latter would work for both installed and not installed packages).
what do I do on debian/ubuntu?
yes, I know about dpkg and apt-get.
yes, I did RTFM.
no, I am NOT interested in GUI.
thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
System76 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Carl Richell (carlrichell) said :
#1

aptitude search foo

For installed and not uninstalled package names.

aptitude search --help for more options or just aptitude --help
------Original Message------
From: sds
Sender: <email address hidden>
To: <email address hidden>
ReplyTo: <email address hidden>
Subject: [Question #47769]: what is the 'yum search' analogue on debian?
Sent: Oct 11, 2008 8:51 PM

New question #47769 on System76:
https://answers.launchpad.net/system76/+question/47769

how do I search for a package by keyword?
on fedora:
if a package is installed, I would do "rpm -qa | grep foo".
if a package is NOT installed, I would do "yum search foo" (actually, the latter would work for both installed and not installed packages).
what do I do on debian/ubuntu?
yes, I know about dpkg and apt-get.
yes, I did RTFM.
no, I am NOT interested in GUI.
thanks.

--
You received this question notification because you are a member of
System76 Bugs, which is an answer contact for System76.

Sent via BlackBerry

Can you help with this problem?

Provide an answer of your own, or ask sds for more information if necessary.

To post a message you must log in.