Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-04-2002, 07:01 PM   #1
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?

Old 08-05-2002, 02:07 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,657

Rep: Reputation: 210Reputation: 210Reputation: 210
Try rpmgraph (search at freshmeat).
Old 08-05-2002, 08:04 AM   #3
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


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 07:34 AM
...packages have unmet dependencies? stribas Linux - Newbie 1 09-29-2004 09:55 AM
Where are dependencies in Slackware packages? sbassi Slackware 2 01-15-2004 04:24 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

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