package-cleanup command_examples

package-cleanup command_examples

package-cleanup – clean up locally installed, duplicate, or orphaned packages

List all dependency problems:

package-cleanup --problems

List all packages that are not in any Yum repository:

package-cleanup --orphans

Remove old kernels keeping 3 and leaving old kernel-devel packages installed:

package-cleanup --oldkernels --count=3 --keepdevel

List all leaf packages with no files in a bin directory whose name begins with either ‘perl’ or ‘python’:

package-cleanup --leaves --exclude-bin --leaf-regex="^(perl)|(python)"

Leave a Reply

Your email address will not be published. Required fields are marked *