Yum Flashcards
How do you check the list of packages available for updates?
yum list updates
How do you install package?
yum install {package name}
What and where is the main yum config file?
/etc/yum.conf
How do you list installed packages?
yum list | less
How do you list package matching string “curl”?
yum list curl
How do you find out what OS version is installed?
yum list centos-release
How do you display the details of a package?
yum info {package name| curl}
How do you search for a package?
yum search curl
How do you locate a package that contains a specific executable?
yum whatprovides /etc/yum.conf
How do you view package dependencies?
yum deplist {package name}
How do you check for updates?
yum check-update
How do you update outdated packages?
yum update
How do you clean yum cache?
yum clean all
What is yum cache?
The yum package manager maintains a cache of headers and files in /var/cache/yum. This cache can grow rather large over time, and can be cleaned with the yum “clean” option: