Hardware Reference
In-Depth Information
For example, to find a game to play, you can type the following command:
apt-cache search game
That tells
apt-cache
to search its list of available software for anything that has the word
“game” in its title or description. For common search terms, you can end up with quite a list
(see Figure 3-7), so try to be as specific as you can.
Figure 3-7:
The last few
results for an
apt-cache
“game” search
If your search term brings up too many different packages to see on a single screen display,
you can tell Linux that you want it to pause on each screenful 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.
TIP
Installing Software
Once you know the name of the package you want to install, switch to the
apt-get
com-
mand in order to install it. Installing software is a privilege afforded only to the
root
user, as