Hardware Reference
In-Depth Information
it affects all users of the Raspberry Pi. As a result, the commands will need to be prefaced
with
sudo
to tell the operating system that it should be run as the
root
user.
For example, to install the package
nethack-console
(a console-based randomly generated
role-playing game), you would simply use the
install
command with
apt-get
as follows:
sudo apt-get install nethack-console
Some packages rely on other packages in order to operate. A programming language may
depend on a compiler, a game engine on graphics files, or an audio player on codecs for play-
ing back different formats. These are known in Linux terms as
dependencies
.
Dependencies are one of the biggest reasons for using a package manager like
apt
rather
than installing software manually. If a package depends on other packages,
apt
will auto-
matically find them (see Figure 3-8) and prepare them for installation. If this happens, you'll
be shown a prompt asking whether you want to continue. If you do, type the letter Y and
press the Enter key.
Figure 3-8:
Apt
listing the
dependencies
for the
OpenOffice.org
package