Ch24 Package Management Exam

  1. All RPM package management commands must be run as the root user. True or False?

    • True
    • False
  2. How can you determine the RPM package that owns a file?

    • yum info
    • yum owns
    • yum find
    • yum provides
  3. How can you remove a package using an rpm command?

    • rpm -e
    • rpm -d
    • rpm -x
    • rpm -r
  4. How is the kernel package special for package management?

    • New versions should be installed instead of upgraded
    • New versions should be upgraded instead of installed
    • It cannot be uninstalled
    • It contains the core of the operating system
  5. If you use the -f option when performing an rpm query:

    • The command will display the full filename of the original package.
    • The command will show the package that owns a file.
    • The command output will wrap at half screen width.
    • The command will output a list of the files in the packages.
  6. If you you have a RPM package file named, figlet-1.1-0.3.i686.rpm, which rpm commands will install it? (choose two)

    • rpm -U figlet-1.1-0.3.i686.rpm
    • rpm -i figlet-1.1-0.3.i686.rpm
    • rpm -F figlet-1.1-0.3.i686.rpm
    • rpm -e figlet-1.1-0.3.i686.rpm
  7. In what directory are yum repository configuration files stored?

    • /var/lib/yum
    • /etc/yum
    • /etc/yum.repos.d
    • /usr/share/yum
  8. The rpm2cpio command can be used to: (choose two)

    • Create a new .rpm file
    • Extract files from a .rpm file
    • Build a binary .rpm file from a source .src.rpm file
    • List the content of a .rpm file
  9. What are the correct options for the rpm command to display a list of all installed packages?

    • -qa
    • -qall
    • -b
    • -a
  10. What is the main advantage in using yum over rpm?

    • It is able to use multiple repositories
    • It is able to install packages from internet addresses
    • It will allow you to override dependencies
    • It can automatically resolve dependency issues between packages
  11. What is the primary configuration file for yum?

    • /etc/yum.conf
    • /etc/yum.d/yum.conf
    • /etc/yum/yum.conf
    • /etc/yum/main.conf
  12. What two differences are there between querying an installed RPM and an RPM package file with the rpm command? (choose two)

    • To query the package file, you have to add the -p option.
    • You must use the full filename when querying the package.
    • To query the installed RPM, you have to add the -i option.
    • You must use the full filename when querying the installed RPM.
  13. Which command shows the scripts that may be part of a RPM package?

    • rpm -qs
    • rpm -q --scripts
    • yum scripts
    • yum info
  14. Which command will check the integrity of an RPM file?

    • rpm -qKp
    • rpm -qCp
    • rpm -qcp
    • rpm -qkp
  15. Which command will show the dependencies of an RPM package?

    • yum requires
    • rpm -qpd
    • yum provides
    • rpm -qpR
  16. How can you determine the Debian package that owns a file?

    • dpkg -o
    • dpkg -S
    • dpkg -f
    • dpkg -i
  17. How can you remove a package but not its configuration files with Debian package management?

    • apt-get erase
    • dpkg -p
    • dpkg -e
    • apt-get remove
  18. In which file are repositories stored for Debian package management?

    • /etc/apt/source.repo
    • /etc/apt/sources.list
    • /etc/apt/repo.list
    • /etc/repo.list
  19. What command will update a single Debian package named figlet?

    • apt-get install figlet
    • apt-get upgrade figlet
    • apt-get freshen figlet
    • apt-get update figlet
  20. Which command may be used to get a list of the installed Debian packages?

    • dpkg -l
    • apt-get list
    • apt-get show
    • dpkg -L
  21. Which command will remove all files that belong to a Debian package?

    • apt-get remove
    • apt-get uninstall
    • apt-get purge
    • apt-get erase
  22. Which command will show the dependencies of a Debian package?

    • apt-get depends
    • apt-cache depends
    • apt-get requires
    • apt-cache requires
  23. Which command will update the list of available packages for APT?

    • apt-cache update
    • apt-get update
    • apt-cache upgrade
    • apt-get upgrade
  24. Which is not a tool used for Debian package management?

    • aptitude
    • deb
    • synaptic
    • dpkg
  25. Which two commands will show detailed information about a Debian package? (choose two)

    • apt-cache show
    • dpkg -s
    • dpkg -i
    • apt-cache info
  26. A _________ is a location that contains packages and metadata that can be used for queries, installation and updates of software on a system.

    • Repository
    • Cache
    • Store
    • Depot
  27. Which zypper option should be used before any searches, installs or updates are attempted?

    • ref
    • apt
    • se
    • upd
  28. Before installing updates, what zypper option will show the updates available for your system?

    • get-updates
    • pull-updates
    • list-updates
    • show-updates