Skip to content

Instantly share code, notes, and snippets.

@spencermathews
Last active January 4, 2017 22:58
Show Gist options
  • Save spencermathews/0e49070258407bbb8403fe08859d77bd to your computer and use it in GitHub Desktop.
Save spencermathews/0e49070258407bbb8403fe08859d77bd to your computer and use it in GitHub Desktop.
System maintenance

Notes for managing installations

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment