LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum vs. apt-get (https://www.linuxquestions.org/questions/linux-newbie-8/yum-vs-apt-get-555426/)

SlowCoder 05-20-2007 06:54 PM

yum vs. apt-get
 
In Fedora I can use yum to retrieve a list of available packages using 'yum list |grep [package]'. I have been unsuccessful finding this functionality in apt-get, using Ubuntu. I do not want to use the 'Add/Remove Applications' manager GUI.

Edit: Oops. After rereading my post, I realized it looks somewhat like a statement. This is a question.

jaymoney 05-20-2007 07:19 PM

you could always do

Code:

apt-cache search
I think it would be overkill to try to view 20,000+ programs in the shell. Any reason you don't want to use Synaptic?

SlowCoder 05-20-2007 07:34 PM

Quote:

Originally Posted by jaymoney
you could always do
Code:

apt-cache search

Your example didn't turn up exactly what I want, as I don't know regular expressions. However, it showed me "apt-cache pkgnames", which will give me a list of packages. But this method does not show me if they are installed, or from what repo they came.

Quote:

Originally Posted by jaymoney
I think it would be overkill to try to view 20,000+ programs in the shell.

I can easily grep for what I am looking for.

Quote:

Originally Posted by jaymoney
Any reason you don't want to use Synaptic?

I find the CLI is faster in this case. I can quicker enter "apt-get ..." than go through the Synaptic menus.

jay73 05-20-2007 10:48 PM

dpkg --list foo* will show whether any packages that have foo in their name are installed or not. Check out the documentation from the Debian home page to learn more about dpkg, apt and aptitude.

AceofSpades19 05-21-2007 01:24 AM

you could launch aptitude by typing aptitude at the command line, it is basically synaptic with out the gui


All times are GMT -5. The time now is 12:36 PM.