yum --showduplicates -list [pacakge name] |
Shows versions of a package. |
yum list installed |
Lists all packages installed. |
Bold |
Update available in repository. |
Bold and underline |
Current kernel |
Red |
Package doesn't exist in repository. |
Yellow |
Newer package then in repository. |
yum list updates |
Lists updates for packages installed. |
yum list available |
yum info [package name] |
Shows package info. |
yum deplist [package name] |
Shows dependencies for package. |
yum search [package name] |
Searches for package name. |
yum reinstall [package name] |
Reinstalled package. |
yum reinstall --skip-broken [package name] |
yum remove [package name] |
Removes package. |
yum autoremove [package name] |
Removes packages including dependencies. |
yum package-cleanup |
Shows unused packages. |
yum install yum-utils |
yum check-update |
Checks for updates. |
yum list obsoletes |
yum install yum-plugin-versionlock |
yum versionlock [package name] |
Prevents package from updating. |
yum versionlock |
Lists version locked packages. |
yum versionlock delete [output from yum versionlock] |
Removes version lock from package. |
yum update --security |
Only updates security packages. |
yum update-minimal --security |
Install strictly security updates. Doesn't include bug fixes. |
yum install yum-plugin changelog |
View package change logs. |
yum changelog updates |
Gets all change logs for packages with updates. |
yum changelog [package name] |
View change log for specific package. |
yum list installed kernel-* |
Lists currently installed kernel. |
ls -l /boot |
Kernel directory. |
uname -r |
Shows running kernel. |
yum list available kernel |
Lists available kernel. |
yum -y update kernel |
Updates kernel. |
yum remove kernel |
grub2-set-default [kernel number] |
Changes kernel. |
ls /lib/modules/$(uname -r)/kernel |
Lists kernel module directory. |
lsmod |
Lists modules. |
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets