LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-09-2008, 11:35 PM   #1
aoverbury
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)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Slackware official repositories lefthanded Slackware 6 11-02-2007 08:37 AM
Firefox 1.0.5 - official repositories Artik Debian 1 07-14-2005 06:37 AM
What is URL of the official Debian repositories? hkl8324 Debian 6 06-09-2005 07:27 PM
Is KDE 3.4 in the official repositories yet? vharishankar Debian 6 05-15-2005 01:31 PM
List of official Debian repositories - where? Sslaxx Debian 7 11-18-2004 03:29 PM


All times are GMT -5. The time now is 10:54 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