v1 Mod6
v2 Mod6
v3 Mod6
100

You obtain your applications and updates in RPM format.

Which of the following distributions is your system based on?

a. Debian

b. Red Hat

what is


b. Red Hat


Any system that is based on or derived from Red Hat can use RPM packages.

Slackware, Debian, and Xandros do not use RPM for package management.

It is also possible for a distribution that is not based on or derived from Red Hat use RPM. SUSE is an example of such a distribution.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

100

Which of the following functions does the rpm -V command perform?

a. Verifies that an RPM package is free from errors.

b. Updates an installed RPM package to the newest version.

c. Checks the authenticity of the RPM package.


what is 

a. Verifies that an RPM package is free from errors.

Explanation

The rpm -V command verifies that packages are free from errors. rpm -V performs an MD5 checksum on the package. RPM only gives output when packages have errors. If errors are present, the command displays the error code and the filename.


rpm -U updates an installed package to the newest version. rpm --checksig checks the authenticity of the package. The option checks the package's digital signing key against the package to ensure it has not been altered. rpm --test tests a package for uninstalled dependencies without actually installing it.


References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

100

What rpm command option update an installed package to the newest version?

a. rpm -a

b. rpm -U

c. rpm -f

what is 

b. rpm -U

example rpm -U --replacepkgs dbus-python-0.83.0-2.fc9.src.rpm reinstalls the dbus-python package. This option is for fixing errors. 

200

What command will upgrade an RPM package only if an earlier version is already installed on the system? 

a. rpm -U

b. rpm -F

what is 

b. rpm -F

Explanation

The rpm -F command upgrades the package, but only if an earlier version currently exists on the system.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

200

You need to determine which files are associated with the metacity RPM package.

Which of the following commands should you use?

a. rpm -ql metacity

b. rpm -V metacity

what is 

a. rpm -ql metacity 

Explanation

rpm -ql metacity shows the files associated with the metacity package.


rpm -i installs a package. Use the entire package filename when installing. rpm -V verifies that packages are free from errors by performing an MD5 checksum on the package. rpm --test tests a package for uninstalled dependencies without actually installing it.


References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

200

Which of the following commands queries the system for all installed RPM packages?

a. rpm -U

b. rpm -qa

c. rpm

what is 

b. rpm -qa 

Explanation

The rpm -qa command queries all installed RPM packages on the system. Use the rpm utility to install RPM packages, including their dependencies.

  • --nodeps installs the package without checking for dependencies. This is not a recommended practice.

  • -U updates an installed package to the newest version.

  • -i installs a package. Use the entire package filename when installing.

  • -h prints hash marks as the package archive is unpacked.

  • -v displays a verbose version of the installation.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

300

Before you install an RPM package, you want to verify the authenticity of the package and check the digital signature to ensure that it has not been altered.

Which rpm option should you use?

a. -U

b. -F

c --checksig

what is 

c. --checksig

Explanation

The rpm --checksig command checks the authenticity of the package. The --checksig option checks the package's digital signing key against the package to ensure that it has not been altered.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

300

You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm.

True or False the following commands will perform the installation?

a.  rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm

 b. rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm


what is true

 rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm

 rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm

Explanation

The commands rpm -Uh or rpm -ih will install package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm.


The command rpm -e will erase an installed package. There is no -X switch to use with rpm. Tar does not work with rpm files.


References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

300

You have found a patch for the Samba server on your system. The patch is a .rpm package.

Which of the following procedures is the MOST correct for installing the package?

a. Download the package. Run tar -uvf on the package to install the update. Delete the rpm file after the install is complete.

b. Download the package. Run rpm -Uvh on the package to install the update.

what is 

b. Download the package. Run rpm -Uvh on the package to install the update. 

Explanation

Use the rpm -Uvh command to update an existing application. Use the -U switch to upgrade or install the package. The -vh switches enable verbose listing of installed files.

There is no command called inspak. tar is used to unpack a tarball, not an rpm package. The rpm -ivh command runs a complete install, not an update.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

400

Without installing an RPM package, you want to check for all of the package's uninstalled dependencies.

Which of the following commands should you use?

a. rpm --test

b. rpm -U


c. rpm --checksig

what is

a. rpm --test

Explanation

The rpm --test command tests a package for uninstalled dependencies without actually installing it.


-i installs a package. Use the entire package filename when installing.


-h prints hash marks as the package archive is unpacked.


-v displays a verbose version of the installation.


--checksig checks the authenticity of the package. The option checks the packages digital signing key against the package to ensure that it has not been altered.


-U updates an installed package to the newest version.


References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

400

You have previously installed the package mplayer and wish to remove it from your computer.

Which of the following removal methods should you use?

a. Run the command erase -r mplayer.

b. Locate the files for mplayer and delete them.

c. Run the command rpm -e mplayer.

what is

c. Run the command rpm -e mplayer. 

Explanation

The proper method is to run the rpm -e command to uninstall the application.

The tar command cannot be used to uninstall packages. There is no standard Linux command called erase. Trying to manually uninstall an application by erasing its files is not a recommended practice.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

400

You are attempting to install an RPM package on your Linux system, but the system tells you the package has dependencies that are not installed. What would you enter at the command prompt to force RPM to override the need to install the dependencies? 

a. rpm

b. rpm -F

c. rpm --nodeps


what is 

c. rpm --nodeps

Explanation

The rpm --nodeps command installs the package without checking for dependencies. This is not a recommended practice. A dependency is an application's reliance on another package to perform correctly.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

500

Which of the following utilities should you use if you need to extract a file from an RPM package file?

a. rpm2cpio

b. rpm -e

what is 

a. rpm2cpio 

Explanation

Use rpm2cpio to convert RPM packages into a cpio archive. This is useful for extracting files from an RPM package without installing and searching for the specific files.


createrepo creates a repository list of RPM packages stored locally or on a network. rpm -e uninstalls a package. The uninstallation process uses the package name, not the file name. If dependencies exist, the dependent packages must first be removed. rpm -i installs a package. Use the entire package filename when installing.


References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

500

You have an RPM package called mathpac that is not working correctly. You have downloaded the latest package.

Which of the following commands should you use to install the latest mathpac package?

a. rpm -U mathpac

b. rpm -i mathpac

what is 

a. rpm -U mathpac 

Explanation

The -U option specifies that you would like to upgrade the package. This option installs the new package and removes the old one. rpm -F freshens the current install, but there is still a small possibility that it will not solve the problem. rpm -i installs a new package, which will not work in this case since the package is already installed.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

500

You are attempting to install an RPM package on your Linux system, but the system tells you that a newer package is already installed.

Which of the following commands will install the RPM package over the existing installed package?

a. rpm --force

b. rpm -e

c. rpm -ihv


what is 

a. rpm --force 

Explanation

The rpm --force command installs the package regardless of whether a newer version of the package is already installed, the package files overwrite existing files, or the package replaces other installed packages.

  • -i installs a package. Use the entire package filename when installing.

  • -h prints hash marks as the package archive is unpacked.

  • -v displays a verbose version of the installation.

  • --rebuilddb rebuilds the database indices from the installed package headers.

  • -e uninstalls a package. The uninstallation process uses the package name, not the file name. If dependencies exist, the dependent packages must first be removed.

References

TestOut Linux Pro 5.0 - 6.1 Red Hat Package Manager (RPM)

M
e
n
u