102.5 Use RPM and Yum Flashcards
1
Q
What is YUM
A
Yellowdog Updater Modified
- Originally used for the Yelllowdog Linux Distribution
- Handles rpm package dependencies
- Installs, upgrades, and removes packages
- Used on RHEL, CentOS, Scientific Linux, and Fedora
- Global YUM configuration options are set in /etc/yum.conf
- Reads repository information from /etc/yum.repos.d
- Caches latest repository information in /var/cache/yum
2
Q
What are some other RPM Package Managers?
A
Zypper - Used on SUSE linux distros - Zypper reopos - Zypper install vim DNF - Dandified yum: - Used on Fedora Linux distros - Future replacement for YUM in REHL
3
Q
How do you use YUM to clear out packages marked for removal?
A
YUM autoremove
4
Q
How do you find out which package provides a specified file name?
A
yum whatprovides
5
Q
How do you reinstall a specified package?
A
yum reinstall
6
Q
What is contained in an rpm file?
A
The .rpm package contains:
- Application or utility
- Default configuration files
- How and where to install the files that come with the package
- Listing of dependencies that the package requires
7
Q
Where is the rpm database located and how do you rebuild it?
A
/var/lib/rpm
Use the rpm –rebuilddb command to repair a corrupted database
8
Q
List all installed packages with rpm?
A
rpm -qa
9
Q
List all files in a package
A
rpm -qpl
10
Q
Upgrade a package with rpm.
A
rpm -U
11
Q
Uninstall a package with rpm
A
rpm -e