Home
You may like this!
21.
Which of the following is not an advantage of a source package over a binary package?
  • A.
    A single source package can be used on multiple CPU architectures.
  • B.
    By recompiling a source package, you can sometimes work around library incompatibilities.
  • C.
    PamJones
  • D.
    Source packages can be installed more quickly than binary packages can.
  • E.
    You may be able to recompile source code for a non-Linux Unix program on Linux.
  • Answer & Explanation
  • Report
Answer : [D]
Explanation :
Because they must be compiled prior to installation, source packages require more time to install than binary packages do, contrary to option D’s assertion, thus making this option correct. The other options all describe advantages of source packages over binary packages.
Report
Name Email  
22.
Which is true of using both RPM and Debian package management systems on one computer?
  • A.
    It’s generally inadvisable because the two systems don’t share installed-file database information.
  • B.
    It’s impossible because their installed-file databases conflict with one another.
  • C.
    It causes no problems if you install important libraries once in each format.
  • D.
    It’s a common practice on Red Hat and Debian systems.
  • E.
    Using both systems simultaneously requires installing the alien program.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The two systems use different databases, which makes coordinating between them difficult. Thus, using them both simultaneously is inadvisable, making option A correct. Package management systems don’t share information, but neither do their databases actively conflict, so option B is incorrect. Installing the same libraries using both systems would almost guarantee that the files served by both systems would conflict with one another, making option C incorrect. Actively using both RPM and Debian packages isn’t common on any distribution, although it’s possible with all of them, so option D is incorrect. The alien program converts between package formats. Although it requires that both systems be installed to convert between them, alien is not required to install both these systems. Thus, option E is incorrect.
Report
Name Email  
23.
Which of the following statements is true about binary RPM packages that are built for a particular distribution?
  • A.
    License requirements forbid using the package on any other distribution.
  • B.
    They may be used in another RPM-based distribution only when you set the --convert-distrib parameter to rpm.
  • C.
    They may be used in another RPM-based distribution only after you recompile the package’s source RPM.
  • D.
    They can be recompiled for an RPM-based distribution running on another type of CPU.
  • E.
    They can often be used on another RPM-based distribution for the same CPU architecture, but this isn’t guaranteed.
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
RPMs are usually portable across distributions, but occasionally they contain incompatibilities, so option E is correct. The package format and software licensing have nothing to do with one another, so option A is incorrect. There is no --convert-distrib parameter to rpm, so option B is incorrect. Although recompiling a source package can help work around incompatibilities, this step is not always required, so option C is incorrect. Binary packages can’t be rebuilt for another CPU architecture, so option D is incorrect, although source packages may be rebuilt for any supported architecture provided the source code doesn’t rely on any CPU-specific features.
Report
Name Email  
24.
An administrator types the following command on an RPM-based Linux distribution:
# rpm -ivh megaprog.rpm
What is the effect of this command?
  • A.
    If the megaprog package is installed on the computer, it is uninstalled.
  • B.
    If the megaprog.rpm package exists, is valid, and isn’t already installed on the computer, it is installed.
  • C.
    The megaprog.rpm source RPM package is compiled into a binary RPM for the computer.
  • D.
    Nothing; megaprog.rpm isn’t a valid RPM filename, so rpm will refuse to operate on this file.
  • E.
    The megaprog.rpm package replaces any earlier version of the package that’s already installed on the computer.
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
The -i operation installs software, so option B is correct. (The -v and -h options cause a status display of the progress of the operation, which wasn’t mentioned in the option.) Uninstallation is performed by the -e operation, and rebuilding source RPMs is done by the --rebuild operation (to either rpm or rpmbuild, depending on the RPM version), so options A and C are incorrect. Although the filename megaprog.rpm is missing several conventional RPM filename components, the rpm utility doesn’t use the filename as a package validity check, so option D is incorrect. Option E describes a package upgrade, which is handled by the -U operation, not -i as in the question, so option E is incorrect.
Report
Name Email  
25.
Which of the following commands will extract the contents of the myfonts.rpm file into the current directory?
  • A.
    rpm2cpio myfonts.rpm | cpio -i --make-directories
  • B.
    rpm2cpio myfonts.rpm > make-directories
  • C.
    rpm -e myfonts.rpm
  • D.
    alien --to-extract myfonts.rpm
  • E.
    rpmbuild --rebuild myfonts.rpm
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The rpm2cpio program extracts data from an RPM file and converts it into a cpio archive that’s sent to standard output. Piping the results through cpio and using the -i and --make-directories options, as in option A, will extract those files to the current directory. Option B creates a cpio file called make-directories that contains the files from the RPM package. Option C will uninstall the package called myfonts.rpm (but not the myfonts package). The alien utility has no --to-extract target, so option D is invalid. The rpmbuild utility builds a source RPM into a binary RPM, making option E incorrect.
Report
Name Email