RPM and YUM package management (3) Flashcards

Objective 102.5 Weight 3

1
Q

Which of the following directory locations contain repository information when the Zypp package manager is used?

  1. /etc/zypper/repos.d/
  2. /etc/zypp/repos.d/
  3. /etc/yum/repos.d/
  4. /etc/yum/repository/
  5. /etc/zypper/repository/
  6. /etc/zypp/repository/
A
  1. /etc/zypp/repos.d/

The /etc/zypp/repos.d/ directory locations contain repository information when the Zypp package manager is used.

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

Which of the following commands will display repository information when the Zypp package manager is used?

  1. zypper refresh
  2. zypper show
  3. zypper info repo
  4. zypper show status
  5. zypper search
  6. zypper lr
A
  1. zypper lr

The zypper lr command will display repository information when the Zypp package manager is used.

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

Which of the following commands will display a package’s installation status when the Zypp package manager is used?

  1. zypper search -i
  2. zypper show
  3. zypper info
  4. zypper show status
  5. zypper search
  6. zypper lr
A
  1. zypper search -i
    AND
  2. zypper info

The zypper search -i and zypper info commands will display a package’s installation status when the Zypp package manager is used. The package name does need to be passed to the commands.

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

Which of the following will display all the installed Red Hat packages on a system?

  1. yum search -i
  2. zypper search -i
  3. yum show installed
  4. zypper show installed
  5. yum list installed
  6. zypper list installed
A
  1. yum search -i
    AND
  2. yum list installed

The zypper search -i and the yum list installed commands will show all the installed Red Hat packages on a system, depending on which package manager is used.

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

Which of the following commands, along with super user privileges, will uninstall an installed Red Hat package, and is the modern command to use?

  1. yum delete package-name
  2. rpm -e package-name
  3. yum remove package-name
  4. yum erase package-name
  5. zypper remove package-name
  6. zypper uninstall package-name
A
  1. rpm -e package-name
  2. yum remove package-name
    AND
  3. zypper remove package-name

The rpm -e package-name, yum remove package-name and, zypper remove package-name commands along with super user privileges, will uninstall an installed Red Hat package, and are the modern command to use. The yum erase command is outdated.

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

Which of the following commands will provide information concerning an uninstalled Red Hat package?

  1. rpm -qip
  2. rpm –query
  3. rpm -q –whatprovides
  4. rpm2cpio
  5. rpm -q
  6. rpm -qp –info
A
  1. rpm -qip
    AND
  2. rpm -qp –info

The rpm -qip, and rpm -qp –info commands provide information concerning an uninstalled package, but you must have the package file and pass its name to one of the commands.

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

Which of the following commands will provide information concerning a Red Hat package?

  1. rpm -qi
  2. rpm –query
  3. rpm -V
  4. rpm -U
  5. rpm -q
  6. rpm -qR
A
  1. rpm -qi
  2. rpm –query
    AND
  3. rpm -q
  4. rpm -qR

The rpm -qi, rpm –query, rpm -q, and rpm -qR commands all provide information concerning the package name passed to the command.

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

Which of the following commands will allow you to install, update, and/or uninstall a Red Hat package?

  1. rpm -i
  2. rpm -e
  3. rpm -V
  4. rpm -U
  5. rpm -q
  6. rpm -r

Overall explanation
The rpm -i command installs a Red Hat package from a local .rpm package file. The rpm -e command uninstalls a Red Hat package, and the rpm -U updates a Red Hat package, and both need the package name, but not the original package file. All these commands require super user privileges.

A
  1. rpm -i
  2. rpm -e
    AND
  3. rpm -U

The rpm -i command installs a Red Hat package from a local .rpm package file. The rpm -e command uninstalls a Red Hat package, and the rpm -U updates a Red Hat package, and both need the package name, but not the original package file. All these commands require super user privileges.

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