Yum

From Bonus Bits
Jump to: navigation, search

Description

This article gives a list of some common yum (Yellow dog Update Manager) package manager commands.


Update All Packages

yum update

No Prompt

yum update -y


Install Local RPM Package

Using Yum to install a local RPM package will track the install and install any dependencies required.

yum localinstall /path/to/rpm/package.rpm


Exclude Repository

yum update --disablerepo <repoid>
yum list <package> --disablerepo <repoid>


Exclude Kernel Updates

yum update --exclude=kernel*

No Prompt

yum update -y --exclude=kernel*


List Packages Installed from a Specific Repository

Gnome-sticky-notes-applet yum-utils required for the following command.

yumdb search from_repo <repoid>

Example

yumdb search from_repo epel


Clean All Cache

This can fix a lot of issues. Such as PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

yum clean all


List all Versions of a Package

yum --showduplicates list java-1.8.0-openjdk | expand