1.6 Given a scenario, build and install software Flashcards
Where is the RPM database located?
/var/lib/rpm
If the RPM database gets corrupted, what command can be run to rebuild it?
rpm –rebuilddb
What is the major difference between RPM and YUM or APT?
- RPM is just a package format, it requires use of an external tool to download packages.
- YUM & APT are actual package managers and can download packages directly from repos
What command can be used the verify an RPM package before installing it?
rpm –checksig
What is different about the package name option when using RPM to install it for the first time?
When installing a package for the first time, the full filename must be specified, i.e. “gftp.2.2.3.12-fc1.x86_64.rpm”
Just “gftp” can be used with RPM once it has been installed
What is the RPM command to install a package?
rpm -i [package file name]
What 2 options can be used when installing a RPM package to get feedback on the progress?
-h prints hashmarks with progress %
-v provides verbose output to the screen
True/False: RPM automatically resolves dependencies when installing a package?
False, installation will fail and a list of dependencies will be provided
What command can be used to verify dependencies without actually installing a RPM package?
rpm -i –test [package file name]
What is the RPM command to remove/uninstall a package?
rpm -e [package name]
What is a potential “gotcha” when uninstalling RPM packages?
It does not automatically remove dependencies, and will fail if all its dependencies have not been removed first
What is the RPM command to update an installed package?
rpm -U [package name]
What is a hidden function of the RPM update command?
It can be used even if the package is not already installed, to install a new package
What RPM command displays information about an installed package?
rpm -qi [package name]
What RPM command displays a list of packages that require a specified package?
rpm -q –whatrequires [package name]