07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• control.tar.gz. This archive file contains all of the available meta-information. In it,<br />

package management tools find, among other things, the name and version of the package.<br />

Some of this meta-information allows them to determine if it is possible to install or<br />

uninstall the programs inside, for example according to the list of packages already on<br />

the machine.<br />

• data.tar.gz. This archive contains all of the files to be extracted from the package; this<br />

is where the executable files, documentation, etc., are all stored. Some packages may use<br />

other compression formats, in which case the file will be named differently (data.tar.<br />

bz2 for bzip2, data.tar.xz for XZ, data.tar.lzma for LZMA).<br />

5.2. Package Meta-Information<br />

The Debian package is not only an archive of files intended for installation. It is part of a larger<br />

whole, and it describes its relationship with other Debian packages (dependencies, conflicts,<br />

suggestions). It also provides scripts that enable the execution of commands at different stages<br />

in the package's lifecycle (installation, removal, upgrades). These data used by the package<br />

management tools are not part of the packaged software, but are, within the package, what is<br />

called its “meta-information” (information about other information).<br />

5.2.1. Description: the control File<br />

This file uses a structure similar to email headers (as defined by RFC 2822). For example, for apt,<br />

the control file looks like the following:<br />

$ apt-cache show apt<br />

Package: apt<br />

Priority: important<br />

Section: admin<br />

Installed-Size: 5612<br />

Maintainer: APT Development Team <br />

Architecture: i386<br />

Version: 0.8.0<br />

Replaces: manpages-pl (= 2.3.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.4.0),<br />

➥ zlib1g (>= 1:1.1.4), debian-archive-keyring, gnupg<br />

Suggests: aptitude | synaptic | wajig, dpkg-dev, apt-doc, bzip2, lzma, python<br />

➥ -apt<br />

Conflicts: python-apt (

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!