This recipe shows how to search for the software packages using apt-cache
.
The "official" Raspbian Linux distribution contains a large number of prebuilt software packages, ready to be downloaded and installed. The distributed software packages cover a wide range of uses including utilities for administering and securing the Raspberry Pi. Using the
apt-cache
command, this large repository can be searched for keywords.
Once you've completed this recipe, you will be able locate software packages by keyword using the
apt-cache search
command.
The following are the ingredients:
If the Raspberry Pi's Secure Shell server is running, this recipe can be completed remotely using a Secure Shell client.
The Raspberry Pi will need access to the Internet to reach the update server(s) from which it will pull the software updates.
The steps for searching the Raspbian Linux software packages are as follows:
apt-cache search fortune –names-only
Searching the cache does not require privileges.
The preceding screenshot shows how the apt-cache
command is used to search for packages with fortune in their names.
In this recipe, the configured Raspberry Pi distributions are searched for packages that have the keyword "fortune" in their package name.
When apt-cache
command is run without the option -names-only
, the command summary is also searched.
Of the packages found, the package fortune-mod is a command-line utility that provides fortune cookies on demand. The packages that begin with fortunes- are the collections of fortunes that the command-line utility selects from when displaying a fortune cookie on demand.
Instructions on how to install the fortune
package are in the next recipe.
http://manpages.debian.net/cgi-bin/man.cgi?query=apt-cache
The Debian man page for apt-cache.
18.224.214.215