Package Management Flashcards
What does RPM stand for?
redhat package manager – source of all packages
How can you list all the packages installed on your system using the rpm command on the CLI?
rpm -qa (q for query, a for all)
How do you count the total number of packages available in the system?
rpm -qa | wc -l
What command can you use to check whether httpd is installed on your system using the rpm utility?
rpm -qa | grep httpd or rpm -qa httpd
What is the command to install a package using the rpm utility?
rpm -ivh <package
name/path>
How can you upgrade a package using the rpm utility?
rpm -Uvh <package name>
How do you remove a package using the rpm command?
rpm -e <package name> (e for
erase)
What method can you use to determine which package a particular file belongs to?
rpm -qf <file path/name>
How do you list the contents of an rpm package?
rpm -ql <package name>
Where is the rpm database stored?
/var/lib/rpm
What advantages does yum have over rpm?
yum – resolves dependencies, do not have to give full path of package
What are the drawbacks of using yum?
yum has a larger cache, system should be on network, yum depends on rpm, repository dependency, yum is limited to rpm packages, internet and repository dependency
How can you download an rpm package using the yum utility?
yumdownloader
<package name>
What is the procedure for installing a package using the yum utility?
yum install
<package name>
How do you update and remove packages using the yum utility?
yum remove
<package name> yum update <package name>