Prev | Current Page 644 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


See Chapter 5 for more information on using modems to get on the Internet.
317
Running Debian GNU/Linux 9
Managing the List of Package Repositories
The configuration file /etc/apt/sources.list contains a list of Debian package repositories
that APT will use. Like most configuration files on a Linux system, this file is a plain-text file that
can be viewed using any text editor or pager. To view its contents, run the following:
# pager /etc/apt/sources.list
deb cdrom:[Debian GNU/Linux _Sarge_ NetInst]/ stable main
deb http://ftp.us.debian.org/debian/ stable main
deb-src http://ftp.us.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main
Depending on which pager is configured as your default, you may need to press the q
key in order to return to a prompt.
Your output will differ from this example??™s, of course, but the kind of information remains the
same. The first part of each line indicates whether the repository is to be used for binary packages
(indicated by the deb prefix) or source packages (deb-src). The rest of the line defines the
method (in this case, cdrom or http), the location, the distribution (stable), and the sections
(main). If you want to use software from the contrib and non-free sections, you can use a text
editor to add them after main.


Pages:
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656