LinuxQuestions.org
Register a domain and help support LQ
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 08-04-2002, 08:01 PM   #1
joeslazenger
LQ Newbie
 
Registered: Aug 2002
Location: South Carolina
Distribution: Red Hat 7.2, 8.0, Advanced Server 2.1
Posts: 17

Rep: Reputation: 0
Question querying RPM packages for dependencies


I'm trying to query all of the installed RPM's along with the requirements of each.

The query that I came up with is:
rpm -qaR

The query gives me lots of information that isn't exactly user friendly so I checked out the --queryformat option.

This is what I'm using now
rpm -qaR --queryformat "%{NAME}[%-8{REQUIRENAME}\n]"

This gives me the exact same output as the original query.

I'm hoping that somebody can help me come up with a query that will list all of the installed rpm's and their dependencies in a readable format?

Thanks
Joe
 
Old 08-05-2002, 03:07 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Try rpmgraph (search at freshmeat).
 
Old 08-05-2002, 09:04 AM   #3
joeslazenger
LQ Newbie
 
Registered: Aug 2002
Location: South Carolina
Distribution: Red Hat 7.2, 8.0, Advanced Server 2.1
Posts: 17

Original Poster
Rep: Reputation: 0
After a nice long break, a couple beers and a decent cigar, I figured this one out on my own.

Here's what I came up with:
rpm -qa --queryformat 'Installed Package: %{NAME} %{VERSION}\n\t%{NAME} %{VERSION} requires:\n[\t\t-- %{REQUIRENAME} %{REQUIREVERSION}\n]' > rpms.txt
 
  


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
Querying RPM dhirsolo Linux - Newbie 8 07-27-2005 08:34 AM
...packages have unmet dependencies? stribas Linux - Newbie 1 09-29-2004 10:55 AM
Where are dependencies in Slackware packages? sbassi Slackware 2 01-15-2004 05:24 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
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 08:10 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