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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you use YUM to clear out packages marked for removal?

A

YUM autoremove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you find out which package provides a specified file name?

A

yum whatprovides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you reinstall a specified package?

A

yum reinstall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List all installed packages with rpm?

A

rpm -qa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List all files in a package

A

rpm -qpl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Upgrade a package with rpm.

A

rpm -U

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Uninstall a package with rpm

A

rpm -e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly