Ch24 Package Management Exam
-
All RPM package management commands must be run as the root user. True or False?
- True
- False
-
How can you determine the RPM package that owns a file?
yum info
yum owns
yum find
yum provides
-
How can you remove a package using an
rpm
command?rpm -e
rpm -d
rpm -x
rpm -r
-
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
-
If you use the
-f
option when performing anrpm
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.
-
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
-
In what directory are yum repository configuration files stored?
- /var/lib/yum
- /etc/yum
- /etc/yum.repos.d
- /usr/share/yum
-
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
- Create a new .
-
What are the correct options for the
rpm
command to display a list of all installed packages?- -qa
- -qall
- -b
- -a
-
What is the main advantage in using
yum
overrpm
?- 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
-
What is the primary configuration file for
yum
?- /etc/yum.conf
- /etc/yum.d/yum.conf
- /etc/yum/yum.conf
- /etc/yum/main.conf
-
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.
-
Which command shows the scripts that may be part of a RPM package?
rpm -qs
rpm -q --scripts
yum scripts
yum info
-
Which command will check the integrity of an RPM file?
rpm -qKp
rpm -qCp
rpm -qcp
rpm -qkp
-
Which command will show the dependencies of an RPM package?
yum requires
rpm -qpd
yum provides
rpm -qpR
-
How can you determine the Debian package that owns a file?
dpkg -o
dpkg -S
dpkg -f
dpkg -i
-
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
-
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
-
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
-
Which command may be used to get a list of the installed Debian packages?
dpkg -l
apt-get list
apt-get show
dpkg -L
-
Which command will remove all files that belong to a Debian package?
apt-get remove
apt-get uninstall
apt-get purge
apt-get erase
-
Which command will show the dependencies of a Debian package?
apt-get depends
apt-cache depends
apt-get requires
apt-cache requires
-
Which command will update the list of available packages for APT?
apt-cache update
apt-get update
apt-cache upgrade
apt-get upgrade
-
Which is not a tool used for Debian package management?
aptitude
deb
synaptic
dpkg
-
Which two commands will show detailed information about a Debian package? (choose two)
apt-cache show
dpkg -s
dpkg -i
apt-cache info
-
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
-
Which
zypper
option should be used before any searches, installs or updates are attempted?- ref
- apt
- se
- upd
-
Before installing updates, what
zypper
option will show the updates available for your system?- get-updates
- pull-updates
- list-updates
- show-updates
Subscribe
0 Comments
Newest