Notes for managing installations
Last active
January 4, 2017 22:58
-
-
Save spencermathews/0e49070258407bbb8403fe08859d77bd to your computer and use it in GitHub Desktop.
System maintenance
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
yum update --exclude=<package>
# 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment