LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2010, 11:39 PM   #1
kienjakenobi
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
Find Leaf Packages on Red Hat


I would like to use a package manager to generate a list of all installed packages that are not depended on by any other installed package.

That is to say, a list of installed packages that are not required by any other installed package.

I believe these are referred to as packages with 0 forward dependencies. I believe they are also called "leaves."

I am on Red Hat, so a method of doing this with rpm, yum or smart would be optimal.

I discovered the package-cleanup program that is a part of yum-utils. According to package-cleanup's man page, the option --leaves will "list leaf nodes in the local RPM database. Leaf nodes are RPMs that are not relied upon by any other RPM." I thought this would do what I wanted, but it seems to do a poor job. It listed only two packages. While those two packages are indeed required by nothing else, I am sure there are many more than two on my system. (For example, it did not list firefox)
 
Old 09-04-2010, 11:42 PM   #2
kienjakenobi
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Excuse me. I discovered the source of my trouble mere seconds after posting.

I was using this command: package-cleanup --leaves

However, by default, that only shows library leaves. This is what I wanted:
package-cleanup --leaves --all
 
  


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
[SOLVED] List non-mandatory leaf packages [CentOS 5.4] carbonfiber Red Hat 2 02-21-2010 03:39 AM
HOw do i handle packages in Red Hat 9.0 crash_override_me Red Hat 1 08-24-2005 02:32 PM
Install RED HAT 9 = cant find red hat CD voodooutt Red Hat 7 11-18-2003 05:37 PM
Red Hat 9 Packages helenvale Linux - Newbie 3 07-09-2003 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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