LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-31-2010, 11:06 AM   #1
the_unforgiven7352
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Question A complete Software listing for a RHEL5 box (NOT an RPM/package dump)


I have a need for a complete software list off of an existing RHEL 5 system.

I need this list to compare software installed to software on a government approved software list to ensure the compliance of this system.

I was given an RPM Dump, listing all the 2000+ packages on the system... This does not translate to the Government Approved software list that I have to compare to.

I do not have access to this system myself, so what ever method is prescribed for extracting the list I will have to pass along.

What I need is either:

1) A way to convert an RPM Package dump to actual software names and versions, etc.

OR

2) A method to extract a complete list of software (titles/versions/etc) from an instance of RHEL5.

Example:

Instead of knowing that "pango-devel-1.14.9-6.el5" exists on the system I need to know that "Pango v3.0.x" is installed on the system. Many packages do not relate on a one to one basis with a specific piece of software via inter-dependencies etc. (not to mention the version of the software, not the version of the package/library). The Pango example is not the best example as you can see what software is likely the source of this package; however just because this package is installed, I cannot grantee 100% that the Pango software suite is installed, just that this package was installed...

Please help if any knows a way to extract a complete software list (not a package listing) from a RHEL5 box, or a way to convert a complete RPM Dump to a complete software list (however I do not think that is a feasible or accurate option)

Thanks!

-Ben
 
Old 08-31-2010, 02:10 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,995
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
If pango 3.x were installed your rpm list would include something like pango-3.1.1-45.7.rpm.

You can actually get quite a bit out of rpm (and/or yum) and both have formatting options to give you all the detail you want. Just note that the versions you see in RHEL are the "base" versions and have extended number beyond the base to show which RedHat patched version you're actually running. You can get info on what bug/security fixes are in those versions using the rpm commands. Typing "man rpm" and "man yum" will show you all the formatting and info you need.

Note however that some software (especially 3rd party products like Oracle) are not installed via rpm or yum but rather with their own tools so just knowing what is there via rpm/yum won't tell you the whole story for most systems. Also it is possible to download, configure and compile packages that are installed manually using make (or by putting them in place by hand) and these won't be in rpm/yum either.

If it were me I'd probably check to see that RHEL5 is approved and assume that any package I got from RHEL repositories or install media is also therefore approved. Trying to compare the hundreds of open source packages you get with an install to some odd list compiled by someone who may or may not know the RedHat way of doing things would take you forever as you see.
 
Old 08-31-2010, 03:13 PM   #3
the_unforgiven7352
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you MensaWater, I appreciate your inputs. You make some good point. I believe my next step is going to be a clean Red Hat install and then do an RPM dump from that and compare/remove those packages as Red Hat packages. I appreciate your info.

Thanks,

Ben
 
Old 08-31-2010, 06:27 PM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
You should/could use /var/log/yum.log for reference about installed rpm's via yum. If you use
Code:
yum localinstall xxx
to install rpm's not in any repositories, this would show all rpm's installed.

You should write a small script that can format your list as you wish it.

Like (not actual or useful code):

Code:
for loop all rows in a list

echo $(echo $row | awk '{print$5}' | awk -F\- '{print$1}" v "{print$2}')


done loop
or process output of
Code:
yum list installed
 
  


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
RHEL5 crashes, dump file? sdc312 Linux - Newbie 1 05-15-2008 10:31 AM
Listing Dependencies of RPM Package shoaibi Linux - Newbie 2 09-18-2007 03:45 PM
installing FreeBSD on Virtual Box error: "Cannot dump. No dump device defined" Valkyrie_of_valhalla *BSD 4 09-06-2007 04:02 AM
Install RPM with YAST Software / Package Manager ERROR! Balarabay1 Suse/Novell 5 07-10-2006 03:34 PM


All times are GMT -5. The time now is 07:22 PM.

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