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 06-30-2009, 08:17 AM   #1
eskaiem
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
rpm - how to search for packages?


Hi,,

(My distro is OpenSuse 11.x)

I'd like to use the rpm on the command line to install a package.

I know how to check for installed RPMs:

rpm -a | grep <pacakge>

and I know how to install an RPM:

rpm -ivh <package>

But I don't know the full package name (e.g. Apache, PHP, MySQL) from the default OpenSuse repository.

How could I search the available packages that came with my OpenSuse distro?

Many Thanks
 
Old 06-30-2009, 08:22 AM   #2
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
I don't use .rpm but I think you want to use the -qa option for query all. Just do a man search man rpm in a terminal.

Edit: Just use -q

Last edited by mrrangerman; 06-30-2009 at 08:26 AM.
 
Old 06-30-2009, 08:27 AM   #3
eskaiem
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks, although rpm -qa only queries installed packages

I have checked the manual for rpm (man rpm), but there doesn't seem to be anything to search or view available packages for install.

Perhaps i'm missing something - or I need to check somewhere else to see what available packages there are in my distro

Cheers
 
Old 06-30-2009, 11:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The command line tool for dealing with the
Suse repo's is 'zypper'

Search : # zypper se <name> ( or part of name ).
Install : # zypper in <package>
which will download and install the package +
all dependencies.

Please run 'man zypper' for more options.
.....
 
Old 06-30-2009, 12:19 PM   #5
eskaiem
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
perfect, thanks
 
  


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
search for packages for ubuntu alaios Ubuntu 1 11-16-2006 06:21 AM
RHEL_ES, How search and than install packages ERBRMN Linux - Enterprise 1 03-08-2006 03:09 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages inward_eye Linux - Software 3 08-24-2003 04:07 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 07:03 PM


All times are GMT -5. The time now is 04:29 PM.

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