» Linux »
Examen sur Linux »
Examen 201 : Advanced Administration »
Section 4 »
Question 3/20
Explanation: Debian archive (.deb) files can be parsed and manipulated by the utility ar. The precise contents of
Debian archive files changed since Debian 0.93. The new contents are understood by versions of the primary
package tool, dpkg, later than 0.93.76, and is described in the "deb"(5) man page. The old
format is described in "deb-old"(5). Using the command ar -t foo_VVV-RRR.deb, you'll see that a Debian
archive file contains these members:
• debian-binary: Contains one or more lines; currently it contains only one line giving the version number (2.0) of the Debian package format.
• control.tar.gz: A compressed (gzip'd) tar file which contains the Debian control files for this package.
(Confusingly, one of these files, and the only one which is required, is itself named control.)
• data.tar.gz: A compressed (gzip'd) tar file which contains the executables, libraries, documentation, etc.,
associated with this package. In other words, this component is the file system data part of a Debian package.
You can extract files from the .tar.gz files using the 'tar' utility.
Reference: http://flits102-126.flits.rug.nl/~erik/debian/debian-faq-6.html
Incorrect Answers
A: You must first use the 'ar' utility to open the .deb file. Then you can use 'tar' to extract the required files.
B: .deb files are not rpm (red hat package manager) files, and therefore cannot be opened with the rpm utility.
C: .deb packages are not gziped cpio files, and therefore cannot be opened with gunzip and cpio.
D: .deb packages can be opened with the 'ar' utility; therefore, specialist tools are not required.