LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-20-2010, 04:54 AM   #1
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
List non-mandatory leaf packages [CentOS 5.4]


Hello.

I am searching for a program which may be used in order to display a list of "leaf" packages (i.e. installed packages upon which no other installed packages depend), but only those "leaf" packages which are not marked as being mandatory packages belonging to some installed group.

For example, assume we have package group "Example" which comprises the following packages:
  • core-package-one [ MANDATORY; installed; ]
  • core-package-two [ MANDATORY; installed; ]
  • extra-package-alpha [ OPTIONAL; installed; not required by any other package; ]
  • extra-package-beta [ OPTIONAL; installed; required by extra-package-alpha; ]
  • extra-package-delta [ OPTIONAL; not installed; ]

Format: <package name> [ <group priority>; <install status>; <leaf status> ]

The tool, when run, should only display "extra-package-alpha" from the "Example" group, because:
  • core-package-one: do not list because it is a MANDATORY package part of installed group "Example"
  • core-package-two: do not list because it is is a MANDATORY package part of installed group "Example"
  • extra-package-alpha: list because it is an OPTIONAL, installed, leaf package belonging to group "Example"
  • extra-package-beta: do not list because it is an OPTIONAL, installed, but not leaf package (extra-package-alpha requires it) belonging to group "Example"
  • extra-package-delta: do not list because it is an OPTIONAL, but not installed package belonging to group "Example"

If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?

Last edited by carbonfiber; 02-20-2010 at 04:56 AM.
 
Old 02-21-2010, 03:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe rpmorphan?

rpmorphan finds "orphaned" packages on your system. It determines which packages have no other packages depending on their installation, and shows you a list of these packages.

(http://rpmorphan.sourceforge.net)
 
1 members found this post helpful.
Old 02-21-2010, 03:39 AM   #3
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Original Poster
Rep: Reputation: 46
Thank you very much.
 
  


Reply



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
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
list packages doru Ubuntu 4 08-12-2009 05:22 AM
Problem with packages - local list doesn't list all packages from a mirror simopal6 Debian 2 09-01-2008 04:44 AM
List of packages gloomz Debian 11 02-02-2007 11:06 AM
get list of latest list of packages bobwall Linux - Distributions 1 11-30-2004 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:48 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
Open Source Consulting | Domain Registration