Chapter 9 . (Yahoo web hosting) Running Debian GNU/Linux 307 Run

Chapter 9 . Running Debian GNU/Linux 307 Run man sources.list on any Debian system for more information. If you aren t going to have your Debian CD available all the time, you may want to remove the cdrom: entry from the file. Use a text editor to edit the file: # editor /etc/apt/sources.list Then update the package database as described in the following section. Astute readers may notice that the pager and editor commands used in this section are not standard UNIX commands. Both are pointers to programs and are managed using Debian s alternatives system, which is discussed later in this chapter. Updating the APT Package Database Because the lists of packages available in the Debian package repositories may change from time to time, you need to instruct APT to download these lists and update its database from time to time. To perform this process, run the following command: # apt-get update You generally want to run this command before installing new packages so that you do not download an older version. Run it before checking for upgrades as well. Finding and Installing Packages When looking for new packages to install, you may not always know what package you want. The package database maintained by APT includes package descriptions and other fields that can be searched using the apt-cache utility: # apt-cache search tetris bsdgames — a collection of classic textual unix games pytris — two-player networked console tetris clone stax — collection of puzzle games similar to Tetris Attack. Specifying multiple keywords in a search prevents it from listing packages that do not contain all of the keywords you specify. This enables you to do very specific searches such as word processor. You can also use this utility to find out more information about a specific package in the repositories: # apt-cache show bsdgames Package: pytris Priority: optional Section: games Installed-Size: 101 Maintainer: Radovan Garabik Tip Note Note
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Leave a Reply