LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2005, 03:46 AM   #1
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
rpm question


hi
why is it if type the command rpm -a nothing happens
even if i am root or a regular user, before it will give
me a lists of rpm installed on my box. but if i type
rpm -q samba it will display the samba version installed
on my box and if i type rpm -aq| grep samba it will display
all rpms that have a samba word! £Ä3


[root@tenchi01 root]# rpm -a
[root@tenchi01 root]# rpm -aq | grep samba
samba-common-2.2.7a-7.9.0
samba-client-2.2.7a-7.9.0
redhat-config-samba-1.0.4-1
samba-2.2.7a-7.9.0
samba-swat-2.2.7a-7.9.0
[root@tenchi01 root]# rpm -q samba
samba-2.2.7a-7.9.0
[root@tenchi01 root]#
 
Old 02-27-2005, 04:01 AM   #2
dinges
LQ Newbie
 
Registered: Nov 2004
Location: Netherlands
Distribution: Centos 4, Ubuntu
Posts: 26

Rep: Reputation: 15
That's because -a is the select option. Before you can use the select option, you must use tell rpm in what mode you want it to be: -q=query mode. After the mode indication you can do deveal things: -qa= query all packages, -qa apackage= query all packages and show only apackage, -qa|grep apackage does the same. See 'man rpm'.
select option
 
Old 02-27-2005, 05:15 AM   #3
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Original Poster
Rep: Reputation: 16
i looked into my .bash_history and found out
that i forgot to put the q it should be rpm -aq
to view all the list of package installed on
your box good thing linux has that keystrokes
history and thanks dinges for the help! £Ä3
 
  


Reply



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
RPM question d2a0n0n0y Linux - Newbie 3 04-15-2005 03:09 PM
question about rpm rockwell_001 Linux - General 3 04-13-2005 04:22 PM
rpm question talkinggoat Linux - Newbie 2 09-26-2003 11:45 AM
rpm question... jmourik Linux - Newbie 2 02-09-2003 10:56 PM
RPM question aizkorri Programming 1 04-20-2002 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:37 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
Open Source Consulting | Domain Registration