Hardware Reference
In-Depth Information
Solution
WARNING
Your Bone needs to be on the network for this to work. See
Recipe 5.11
,
Recipe 5.12
,
or
Re-
The easiest way to install more software is to use
apt-get
:
bone#
apt-get update
bone#
apt-get install "name of software"
A
sudo
is necessary if you aren't running as
root
. The first command downloads pack-
age lists from various repositories and updates them to get information on the newest ver-
sions of packages and their dependencies. (You need to run it only once a week or so.) The
second command fetches the software and installs it and all packages it depends on.
How do you find out what software you can install? Try running this:
bone#
apt-cache pkgnames | sort > /tmp/list
bone#
wc /tmp/list
32121 32121 502707 /tmp/list
bone#
less /tmp/list
The first command lists all the packages that
apt-get
knows about and sorts them and
stores them in
/tmp/list
. The second command shows why you want to put the list in a file.
The
wc
command counts the number of lines, words, and characters in a file. In our case,
there are over 32,000 packages from which we can choose! The
less
command displays
the sorted list, one page at a time. Press the space bar to go to the next page. Press Q to
quit.
Suppose that you would like to install an online dictionary (
dict
). Just run the following
command:
bone#
apt-get install dict