LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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

Closed Thread
 
Search this Thread
Old 06-01-2011, 01:32 AM   #1
gremlin007
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Rep: Reputation: Disabled
Bash scripting rpm


Hey guys

can someone please help me with this

Displays ONLY the description text for the RPM package

how can you do it , ive read online that

"# rpm -qi " gets you all the information
how can i just get description ?

any help will be most appreciated
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-01-2011, 01:44 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hello,

I have reported your thread to be closed; Please try to refrain from posting duplicate threads - http://www.linuxquestions.org/questi...ckages-883871/

Me and evo2 already posted, and you have marked your thread as solved. If our solutions that we have provided worked for you, please let us know in that forum, and not this one. Thanks for understanding.

Cheers,

Josh
 
Old 06-01-2011, 01:48 AM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,766

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Reply

Hi there,

Yes you can get the information about the rpm package using -qi. What you need to do is as follows:

rpm -qi package_name

If you are not sure about the package name and suppose you want to get the information about vsftpd. Then you can do as follows:

rpm -qa | grep vsftpd

The above command will get you the package_name. -qa is for query all.

Once you got the package name you can then execute the command: rpm -qi package_name.

I hope this helps
 
Old 06-01-2011, 01:13 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...ckages-883871/
 
2 members found this post helpful.
  


Closed Thread

Tags
bash, rpm, shell


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
Bash shell scripting help ! RPM packages gremlin007 Linux - Newbie 24 06-01-2011 12:40 PM
scripting rpm/yum with --nodeps fw12 Programming 2 08-05-2009 12:28 PM
Reading a bash variable in bash scripting problem freeindy Programming 3 11-27-2008 02:29 AM
Need help with bash scripting Kleedrac Linux - Software 6 05-09-2006 02:55 PM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 04:55 PM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration