Installing Software - Raspberry Pi User Manual

Hide thumbs Also See for Raspberry Pi:
Table of Contents

Advertisement

42
If your search term brings up too many different packages to see on a single screen display, you can
TIP
tell Linux that you want it to pause on each screenfull by piping the output of apt-cache through
a tool called less. Simply change the command to apt-cache search game | less and use
the cursor keys to scroll through the list. Press the letter Q on the keyboard to exit.

Installing Software

Once you know the name of the package you want to install, switch to the
mand in order to install it . Installing software is a privilege afforded only to the root user, as
it affects all users of the Pi . As a result, the commands will need to be prefaced with
tell the operating system that it should be run as the root user .
For example, to install the package
game from days gone by), you would simply use the
follows:
sudo apt-get install thrust
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
than installing software manually . If a package depends on other packages,
matically find them (see Figure 2-5) 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 .
R A S P B E R R Y P I
U S E R G U I D E 
(a Linux version of a popular Commodore 64
thrust
apt-get
command with
install
apt
com-
to
sudo
as
apt-get
rather
apt
will auto-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents