spencermathews
4/3/2016 - 10:45 PM

System maintenance

System maintenance

Yum

Updating

yum makecache
yum list extras
yum list obsoletes
yum list updates  # vs check-update?
...
yum update  # yum upgrade also removes obsolete packages
yum clean all

Conflicts

Exclude a package from update
yum update --exclude=<package>
Manually install rpm with file conflict
# Download rpm to current directory, in yum-utils
yumdownloader <package>

# -vh are just verbose/display options
rpm -ivh --replacefiles   # optionally use -U, --update instead of -i, --install

Note: installing packages with rpm may lead to "RPMDB altered outside of yum." message when using yum. Use yum cleanup all to


# List all packages installed on the system
yum list installed  # equivalent to rpm -qa

# List installed packages which no longer appear in any enabled repositories
yum list extras

?

rpm -qa --dupes
yum check
package-cleanup --cleandupes

Reference

Notes for managing installations