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.

6.2.1. Initialization<br />

For any work with APT, the list of available packages needs to be updated; this can be done<br />

simply through aptitude update. Depending on the speed of your connection, the operation<br />

can take a while since it involves downloading a certain number of Packages.(gz|bz2) files<br />

(or even Sources.(gz|bz2)), which have gradually become bigger and bigger as Debian has<br />

developed (more than 8 MB for the largest Packages.gz — from the main section). Of course,<br />

installing from a CD-ROM set does not require any downloading — in this case, the operation is<br />

very fast.<br />

6.2.2. Installing and Removing<br />

With APT, packages can be added or removed from the system, respectively with aptitude<br />

install package and aptitude remove package. In both cases, APT will automatically install<br />

the necessary dependencies or delete the packages which depend on the package that is being<br />

removed. The aptitude purge package or apt-get purge package commands involve a<br />

complete uninstallation — the configuration files are also deleted.<br />

TIP<br />

Installing the same selection<br />

of packages several times<br />

It can be useful to systematically install the same list of packages on several<br />

computers. This can be done quite easily.<br />

First, retrieve the list of packages installed on the computer which will serve<br />

as the “model” to copy.<br />

$ dpkg --get-selections >pkg-list<br />

The pkg-list file then contains the list of installed packages. Next, transfer<br />

the pkg-list file on the computers you want to update and use the following<br />

commands:<br />

# dpkg --set-selections

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

Saved successfully!

Ooh no, something went wrong!