Use RPM and YUM package management Flashcards
What RPM switch intalls a package?
-i
What RPM switch installs a new package or upgrades an existing one?
-U
What RPM switch upgrades a package only if an earlier version exisits?
-F –freshen
What RPM switch queries a package, is it installed etc?
-q
What RPM switch uninstalls a package?
-e
What RPM switch builds a binary package given source code and configuration files?
-b
What RPM switch builds a binary package given a source RPM flle?
–rebuild
What RPM switch rebuilds the RPM database?
–rebuilddb
What command will convert RPM to cpio archives?
rpm2cpio
What command extracts a cpio archive?
cpio -i –make-directories
What YUM command deletes a package from the system?
remove or delete
What YUM command displays information about a package?
list or info
What YUM command displays information about packages that provide a specified program or feature?
provides or whatprovides
What YUM command cleans the Yum cache directory?
clean
What YUM command enters CLI mode?
shell
What YUM command installs the specified local RPM files?
localinstall
What YUM command updates the system with the specified local RPM files?
localupdate
What YUM command diplays dependencies?
deplist
What YUM command will only download the file?
yumdownloader
Where is the main RPM config file and what is special about it?
/usr/lib/rpm/rpmrc - don’t edit
What file should be created to make global RPM changes?
/etc/rpmrc
What is the configuration file for YUM?
/etc/yum.conf
How does a new repository get added into YUM?
When a downloaded package is installed the repository is automatically added.
What directory holds the yum repositories?
/etc/yum.repos.d/
What is the package system prerequiste for alien?
Both RPM and Debian package management should be installed.
What is important to remember when installing a tarball with alien?
It converts the files in directory using the system root as the base directory.
What are four main package dependency problems?
Missing library, incompatible library, duplicate files, mismatched package names
What could you do to if you knew a library was present but the package wouldn’t install because it didn’t detect the library?
rpm -i name.rpm –force or –nodeps
What would resolve the issue of a package being built on a computer with uneeded dependencies?
Rebuild the package from source code with rpmbuild –rebuild
What RPM option defines the root folder?
–root dir
What RPM option shows the progress of the installation?
-h –hash
What RPM option produces a uniform number of hashes for each installed component?
-v
What RPM option checks for dependencies and other problems without installing?
–test
What RPM option sets the installation directory?
–prefix path
What RPM option queries or verifies all packages?
-a or –all
What RPM option queries what package owns a file?
-f or –file filename
What RPM option displays package information?
-i
What RPM option queries a package file not yet installed?
-p package_file
What RPM option displays packages and files which depend on this package?
-R or –requires
What RPM option displays the files in the package?
-l or –list