YUM Flashcards
Only check for available list of updates
yum check-update
then,
yum update httpd
Search online repos with updates to upgrade packages with yum
yum update
Get info about specific package with yum
yum info httpd
Display all packages installed by yum
yum list installed | grep httpd
Clean yum cache info and its local db file
yum clean all
Install/remove/reinstall app with yum
yum -y install httpd
yum remove httpd
yum reinstall httpd
yum localinstall htop
Remove package and it dependencies with yum
yum autoremove httpd
Find with yum what package provides a specified file name
yum whatprovides */htpd
yum provides /var/www => httpd -the basic dir for Apache HTTP server
Download a package with yum
yum install yum-utils
yumdownloader htop
Yum global conf file
Yum’s repositories
Yum cash location of latest requests
/etc/yum.conf
/etc/yum.repos.d/
/var/cache/yum
Rpm DB location
/var/lib/rpm
Repair corrupted rpm db
rpm –rebuilddb
List files in rpm package
List files in app
rpm -qpl htop.2.2.0.rpm
rpm -ql htop
Display info on rpm package
rpm -qpi htop.2.2.0.rpm
the info as yum info htop would provide
List all rpm packages installed on a system
rpm -qa | grep htop
the same as yum list installed would provide