Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-10-2008, 12:35 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Getting a list of packages in the official RHEL repositories

I'm currently in the midst of building a server monitoring application based around OpenNMS. One thing it's going to need is a way to store up to date listings of the packages currently officially available for several Linux distros (Debian, Ubuntu, Red Hat, etc).

Now, I could get this information by parsing security update advisories as they come in and extracting the relevant information from them, but this by no means gives me everything I need, and it's highly susceptible to breaking because it's dependent on everyone following the same template all the time (which, from my experience, just does not happen. Debian Security Advisories are a great example of this. Sometimes a given OS is referred to as 4.0, sometimes as stable, sometimes as Etch, etc...)

My other option is to get a listing of the packages and their current version numbers that are in the official package repositories for the given distro. For Ubuntu and Debian this is quite easy. I can go to a server, download three or four gzipped files, unzip them and parse their contents. They're guaranteed to be relatively stable and consistent because the external packaging toolkit in Debian systems, apt, uses this file, and it needs to be backwards compatible.

Where I hit a snag is in getting equivalent information for Red Hat systems. I support a number of RHEL 2.1, 3, 4 and 5 systems, so they're all subscribed to the relevant up2date channels. I suppose that I could get the package lists off those servers, but it seems a bit clunky to me, and would be terribly inefficient. All I need to know for, say, RHEL 4, all the packages available for it in Red Hat's repositories, their architecture and the currently available version. I don't want to access the actual packages, since I completely understand that I need a paid support contract for that. I just want to know what's in there, so I can highlight the packages currently on the servers I support where the version numbers don't match what's currently available. (I'd love to be able to say whether a given version number is higher or lower than the official package in the repository, but such evaluations of version numbers are far from as easy as they might seem)


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
Question about Slackware official repositories lefthanded Slackware 6 11-02-2007 09:37 AM
Firefox 1.0.5 - official repositories Artik Debian 1 07-14-2005 07:37 AM
What is URL of the official Debian repositories? hkl8324 Debian 6 06-09-2005 08:27 PM
Is KDE 3.4 in the official repositories yet? vharishankar Debian 6 05-15-2005 02:31 PM
List of official Debian repositories - where? Sslaxx Debian 7 11-18-2004 04:29 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:39 AM.

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