LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2007, 06:54 PM   #1
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
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.

Last edited by SlowCoder; 05-20-2007 at 06:56 PM.
 
Old 05-20-2007, 07:19 PM   #2
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Rep: Reputation: 16
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?
 
Old 05-20-2007, 07:34 PM   #3
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Original Poster
Rep: Reputation: 38
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.
 
Old 05-20-2007, 10:48 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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.

Last edited by jay73; 05-20-2007 at 10:49 PM.
 
Old 05-21-2007, 01:24 AM   #5
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum/Apt whis is better? yum or apt repos needed coolguy_iiit Linux - Newbie 1 07-31-2006 08:48 AM
yum against APT programmershous Linux - Software 6 06-20-2005 08:45 AM
yum and apt floyd Fedora 3 11-24-2004 05:10 PM
yum or apt krdp Fedora 7 01-15-2004 09:16 PM
apt -yum ronss Fedora 6 11-11-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration