Examen 101 - LPI Chapter 2:Managing Software

Beschreibung

Quiz am Examen 101 - LPI Chapter 2:Managing Software, erstellt von Carlos Alberto Jara Alva am 08/01/2018.
Carlos Alberto Jara Alva
Quiz von Carlos Alberto Jara Alva, aktualisiert more than 1 year ago
Carlos Alberto Jara Alva
Erstellt von Carlos Alberto Jara Alva vor mehr als 6 Jahre
135
0

Zusammenfassung der Ressource

Frage 1

Frage
What is the correct syntax to remove mypkg entirely from a Debian GNU/Linux system, including configuration file? Select one.
Antworten
  • dpkg -r mypkg
  • dpkg --remove mypkg
  • dpkg --kill mypkg
  • dpkh -R mypkg
  • dpkg --purge mypkg

Frage 2

Frage
How can you query the RPM database for a list of all installed RPM packages? Select one
Antworten
  • rpm -q
  • rpm -qa
  • rpm -a
  • rpm -al
  • rpm -qal

Frage 3

Frage
What will happen when rpm is launched as follows? #rpm -Uvh file
Antworten
  • The RPM file will be verified
  • An installed package may be upgraded with the version in file, with verbose output.
  • An installed package may be upgraded with the version in file, with verbose output and hash marks indicating progress.
  • An error will occur because a major mode is not specified
  • An error will occur because no file options were specified.

Frage 4

Frage
Which is not a valid dkpg installation command? Select one
Antworten
  • dpkg -i package_file
  • dpkg -iL package_file
  • dpkg -iR packge_dir
  • dpkg -iG package_file
  • dpkg -iE package_file

Frage 5

Frage
Which of the following is not an advantage of a source package over a binary package?
Antworten
  • A single source package can be used on multiple CPU architectures.
  • By recompiling a source package, you can sometimes work around library incompat- ibilities.
  • You can modify the code in a source package, thus altering the behavior of a program.
  • Source packages can be installed more quickly than binary packages.
  • You may be able to recompile source code for a non-Linux Unix program on Linux.

Frage 6

Frage
Which is true of using both RPM and Debian package management systems on one computer?
Antworten
  • It’s generally inadvisable because the two systems don’t share installed-file database information.
  • It’s impossible because their installed-file databases conflict with one another.
  • It causes no problems if you install important libraries once in each format.
  • It’s a common practice on Red Hat and Debian systems.
  • Using both systems simultaneously requires installing the alien program.

Frage 7

Frage
Which of the following statements is true about binary RPM packages that are built for a particular distribution?
Antworten
  • License requirements forbid using the package on any other distribution.
  • They may be used in another RPM-based distribution only when you set the -- convert-distrib parameter to rpm.
  • They may be used in another RPM-based distribution only after you recompile the package’s source RPM
  • They can be recompiled for an RPM-based distribution running on another type of CPU.
  • They can often be used on another RPM-based distribution for the same CPU architecture, but this isn’t guaranteed.

Frage 8

Frage
An administrator types the following command on an RPM-based Linux distribution: # rpm -ivh megaprog.rpm What is the effect of this command?
Antworten
  • If the megaprog package is installed on the computer, it is uninstalled.
  • If the megaprog.rpm package exists, is valid, and isn’t already installed on the computer, it is installed.
  • The megaprog.rpm source RPM package is compiled into a binary RPM for the computer.
  • Nothing; megaprog.rpm isn’t a valid RPM filename, so rpm will refuse to operate on this file.
  • The megaprog.rpm package replaces any earlier version of the package that’s already installed on the computer.

Frage 9

Frage
Which of the following commands will extract the contents of the myfonts.rpm file into the current directory?
Antworten
  • rpm2cpio myfonts.rpm | cpio -i --make-directories
  • rpm2cpio myfonts.rpm > make-directories
  • rpm -e myfonts.rpm
  • alien --to-extract myfonts.rpm
  • rpmbuild --rebuild myfonts.rpm

Frage 10

Frage
Which of the following commands would you type to update the unzip program on a Fedora system to the latest version? (Select all that apply.)
Antworten
  • yum update unzip
  • yum upgrade unzip
  • yum -u unzip
  • yum -U unzip
  • yum check-update unzip

Frage 11

Frage
How should you configure a system that uses Yum to access an additional Yum software repository?
Antworten
  • Edit the /etc/apt/sources.list file to include the repository site’s URL, as detailed on the repository’s website.
  • Download 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.
  • Use the add-repository subcommand to yum or the Add Repository option in the File menu in yumex, passing it the URL of the repository.
  • Edit the /etc/yum.conf file, locate the [repos] section, and add the URL to the repository after the existing repository URLs.
  • Edit the /etc/yum.conf file, locate the REPOSITORIES= line, and add the new repository to the colon-delimited list on that line.

Frage 12

Frage
What option(s) to rpm will instruct rpm to run a verification check on all packages installed on the system?
Antworten
  • rpm -verify -all
  • rpm -Va
  • rpm -qa
  • rpm -check
  • rpm -c

Frage 13

Frage
For distributions that use the Red Hat package management system, what command will list all packages currently installed?
Antworten
  • rpm -qa
  • rpm -i
  • rpm -Uvh
  • rpm -list
  • rpm -all

Frage 14

Frage
for distributions that use the Red Hat package management system, what command will download and update all installed packages to he latest available version?
Antworten
  • yum update
  • yum install
  • yum config
  • yum list available
  • yum download

Frage 15

Frage
To use dpkg to remove a package called theprogram, including its configuration files, which of the following commands would you issue?
Antworten
  • dpkg -e theprogram
  • dpkg -p theprogram
  • dpkg -r theprogram
  • dpkg -r theprogram-1.2.3-4.deb
  • dpkg -P theprogram

Frage 16

Frage
What is it that allows apt-cache to be done?
Antworten
  • That’s intended solely to provide information about the Debian package database
  • Packet list to be installed by the operating system
  • Install the packages that run certain libraries
  • Install only using the alien converter with current kernel versions

Frage 17

Frage
The parameter to unpack a file in tar is:
Antworten
  • j
  • x
  • z
  • r
  • v

Frage 18

Frage
To see a compressed file with gzip format, I use the parameter, with command gzip:
Antworten
  • -x
  • -r
  • -d
  • -t
  • -w

Frage 19

Frage
What is the preferred method of adding a directory to the library path for all users?
Antworten
  • Modify the LD_LIBRARY_PATH environment variable in a global shell script.
  • Add the directory to the /etc/ld.so.conf file, and then type ldconfig.
  • Type ldconfig /new/dir, where /new/dir is the directory you want to add.
  • Create a symbolic link from that directory to one that’s already on the library path.
  • Type ldd /new/dir, where /new/dir is the directory you want to add.

Frage 20

Frage
What programs might you use to learn what your system’s load average is? (Select two.)
Antworten
  • ld
  • load
  • top
  • uptime
  • la
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

IKA-Theoriefragen Serie 19 (15 Fragen)
IKA ON ICT GmbH
Blended Learning in der Schule umsetzen
Laura Overhoff
Online Karteikarten im Klassenraum
Laura Overhoff
10 wichtige Kompetenzen moderner Lehrer
Laura Overhoff
Sachversicherungen
Christine Zehnder
Einführung in die Forschungsmethoden Kompakt
Angelina Idt
SL2
N H
Struktur und Entwicklung der Gegenwartgesellschaft Österreich im Wandel - Fragen
Anita Pitsch
Vetie - Radiologie - Wer wird Veterinär
Fioras Hu
Vetie Immunologie
Katrin Harles
Vetie Pharma 2017
Larissa Görz