07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

above all, to keep a history of the development of the system: one can find the exact moment<br />

when each package has been installed or updated, and this information can be extremely useful<br />

in understanding a recent change in behavior. Additionally, all versions being recorded, it is<br />

easy to cross-check the information with the changelog.Debian.gz for packages in question,<br />

or even with online bug reports.<br />

5.5. Coexistence with Other Packaging Systems<br />

Debian packages are not the only software packages used in the free software world. The main<br />

competitor is the RPM format for Red Hat Linux and its many derivatives. Red Hat is a very<br />

popular, commercial distribution. It is common for software provided by third parties to be<br />

offered as RPM packages rather than Debian.<br />

In this case, you should know that the program rpm, which handles RPM packages, is available<br />

as a Debian package, so it is possible to use this package format on Debian. Care should be taken,<br />

however, to limit these manipulations to extract the information from a package or to verify its<br />

integrity. It is, in truth, unreasonable to use rpm to install an RPM on a Debian system; RPM uses<br />

its own database, separate from those of native software (such as dpkg). This is why it is not<br />

possible to ensure a stable coexistence of two packaging systems.<br />

On the other hand, the alien utility can convert RPM packages into Debian packages, and vice<br />

versa.<br />

COMMUNITY<br />

Encouraging the adoption of<br />

.deb<br />

If you regularly use the alien program to install RPM packages coming from<br />

one of your providers, do not hesitate to write to them and amicably express<br />

your strong preference for the .deb format. Note that the format of the package<br />

is not everything: a .deb package built with alien or prepared for a version<br />

of Debian different than that which you use, even for a derivative distribution<br />

like Ubuntu, would probably not offer the same level of quality and integration<br />

as a package specifically developed for Debian Squeeze.<br />

$ fakeroot alien --to-deb phpMyAdmin-2.0.5-2.noarch.rpm<br />

phpmyadmin_2.0.5-2_all.deb generated<br />

$ ls -s phpmyadmin_2.0.5-2_all.deb<br />

64 phpmyadmin_2.0.5-2_all.deb<br />

You will find that this process is extremely simple. You must know, however, that the package<br />

generated does not have any information on dependencies, since the dependencies in the two<br />

packaging formats don't have systematic correspondence. The administrator, thus, must manually<br />

ensure that the converted package will function correctly, and this is why Debian packages<br />

thus generated should be avoided as much as possible. Fortunately, Debian has the largest collection<br />

of software packages of all distributions, and it is likely that whatever you seek is already<br />

in there.<br />

Looking at the man page for the alien command, you will also note that this program also<br />

98 The Debian Administrator's Handbook

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

Saved successfully!

Ooh no, something went wrong!