Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want a list of installed packages requested by the user, excluding those installed as dependencies. This is on a CentOS 5 machine and the packages were installed using yum. I am attempting to reconstruct what rpms were necessary to build a particularly large amount of source code.

For example, if yum install net-snmp-devel were run the list would not include elfutils-libelf-devel-static installed as a dependency of net-snmp-devel.

share|improve this question

1 Answer 1

package-cleanup --leaves --all will list all non-dependant packages. This lists both packages requested directly by the user, and packages which were installed with the operating system.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.