Quiz
Examen 101 - LPI Chapter 2:Managing Software
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (20)
1What is the correct syntax to remove mypkg entirely from a Debian GNU/Linux system, including configuration file? Select one.
- Adpkg -r mypkg
- Bdpkg --remove mypkg
- Cdpkg --kill mypkg
- Ddpkh -R mypkg
- Edpkg --purge mypkg
2How can you query the RPM database for a list of all installed RPM packages? Select one
- Arpm -q
- Brpm -qa
- Crpm -a
- Drpm -al
- Erpm -qal
3What will happen when rpm is launched as follows?
#rpm -Uvh file- AThe RPM file will be verified
- BAn installed package may be upgraded with the version in file, with verbose output.
- CAn installed package may be upgraded with the version in file, with verbose output and hash marks indicating progress.
- DAn error will occur because a major mode is not specified
- EAn error will occur because no file options were specified.
4Which is not a valid dkpg installation command? Select one
- Adpkg -i package_file
- Bdpkg -iL package_file
- Cdpkg -iR packge_dir
- Ddpkg -iG package_file
- Edpkg -iE package_file
5Which of the following is not an advantage of a source package over a binary package?
- AA single source package can be used on multiple CPU architectures.
- BBy recompiling a source package, you can sometimes work around library incompat-
ibilities. - CYou can modify the code in a source package, thus altering the behavior of a program.
- DSource packages can be installed more quickly than binary packages.
- EYou may be able to recompile source code for a non-Linux Unix program on Linux.
6Which is true of using both RPM and Debian package management systems on one
computer?- AIt’s generally inadvisable because the two systems don’t share installed-file database
information. - BIt’s impossible because their installed-file databases conflict with one another.
- CIt causes no problems if you install important libraries once in each format.
- DIt’s a common practice on Red Hat and Debian systems.
- EUsing both systems simultaneously requires installing the alien program.
- AIt’s generally inadvisable because the two systems don’t share installed-file database
7Which of the following statements is true about binary RPM packages that are built for a
particular distribution?- ALicense requirements forbid using the package on any other distribution.
- BThey may be used in another RPM-based distribution only when you set the
-- convert-distrib parameter to rpm. - CThey may be used in another RPM-based distribution only after you recompile the
package’s source RPM - DThey can be recompiled for an RPM-based distribution running on another type of
CPU. - EThey can often be used on another RPM-based distribution for the same CPU
architecture, but this isn’t guaranteed.
8An administrator types the following command on an RPM-based Linux distribution:
# rpm -ivh megaprog.rpm
What is the effect of this command?- AIf the megaprog package is installed on the computer, it is uninstalled.
- BIf the megaprog.rpm package exists, is valid, and isn’t already installed on the
computer, it is installed. - CThe megaprog.rpm source RPM package is compiled into a binary RPM for the
computer. - DNothing; megaprog.rpm isn’t a valid RPM filename, so rpm will refuse to operate on
this file. - EThe megaprog.rpm package replaces any earlier version of the package that’s already
installed on the computer.
9Which of the following commands will extract the contents of the myfonts.rpm file into
the current directory?- Arpm2cpio myfonts.rpm | cpio -i --make-directories
- Brpm2cpio myfonts.rpm > make-directories
- Crpm -e myfonts.rpm
- Dalien --to-extract myfonts.rpm
- Erpmbuild --rebuild myfonts.rpm
10Which of the following commands would you type to update the unzip program on a
Fedora system to the latest version? (Select all that apply.)- Ayum update unzip
- Byum upgrade unzip
- Cyum -u unzip
- Dyum -U unzip
- Eyum check-update unzip
11How should you configure a system that uses Yum to access an additional Yum software
repository?- AEdit the /etc/apt/sources.list file to include the repository site’s URL, as detailed
on the repository’s website. - BDownload a package from the repository site, and install it with RPM, or place a
configuration file from the repository site in the /etc/yum.repos.d directory. - CUse the add-repository subcommand to yum or the Add Repository option in the File
menu in yumex, passing it the URL of the repository. - DEdit the /etc/yum.conf file, locate the [repos] section, and add the URL to the
repository after the existing repository URLs. - EEdit the /etc/yum.conf file, locate the REPOSITORIES= line, and add the new
repository to the colon-delimited list on that line.
- AEdit the /etc/apt/sources.list file to include the repository site’s URL, as detailed
12What option(s) to rpm will instruct rpm to run a verification check on all packages installed on the system?
- Arpm -verify -all
- Brpm -Va
- Crpm -qa
- Drpm -check
- Erpm -c
13For distributions that use the Red Hat package management system, what command will list all packages currently installed?
- Arpm -qa
- Brpm -i
- Crpm -Uvh
- Drpm -list
- Erpm -all
14for distributions that use the Red Hat package management system, what command will download and update all installed packages to he latest available version?
- Ayum update
- Byum install
- Cyum config
- Dyum list available
- Eyum download
15To use dpkg to remove a package called theprogram, including its configuration files,
which of the following commands would you issue?- Adpkg -e theprogram
- Bdpkg -p theprogram
- Cdpkg -r theprogram
- Ddpkg -r theprogram-1.2.3-4.deb
- Edpkg -P theprogram
16What is it that allows apt-cache to be done?
- AThat’s intended solely to provide information about the Debian package database
- BPacket list to be installed by the operating system
- CInstall the packages that run certain libraries
- DInstall only using the alien converter with current kernel versions
17The parameter to unpack a file in tar is:
- Aj
- Bx
- Cz
- Dr
- Ev
18To see a compressed file with gzip format, I use the parameter, with command gzip:
- A-x
- B-r
- C-d
- D-t
- E-w
19What is the preferred method of adding a directory to the library path for all users?
- AModify the LD_LIBRARY_PATH environment variable in a global shell script.
- BAdd the directory to the /etc/ld.so.conf file, and then type ldconfig.
- CType ldconfig /new/dir, where /new/dir is the directory you want to add.
- DCreate a symbolic link from that directory to one that’s already on the library path.
- EType ldd /new/dir, where /new/dir is the directory you want to add.
20What programs might you use to learn what your system’s load average is? (Select two.)
- Ald
- Bload
- Ctop
- Duptime
- Ela
Information
- Description
- Quiz on Examen 101 - LPI Chapter 2:Managing Software, created by Carlos Alberto Jara Alva on 08/01/2018.
- Author
- Carlos Alberto Jara Alva
- Language
- Español
- Views
- 172
- Rating
- No ratings yet Rate this quiz
More on Linux System Management