8. apt files

8.1. sources.list

The sources.list file, found at /etc/apt directory, describes the sources that apt will use to know where to search for package information.

This file's syntax is as follow:

    TYPE URI ARGS

Currently TYPE may be deb or rpm. We'll describe just the rpm type.

8.2. The rpm type

The rpm type is a typical RPM distribution with its set of packages. As there is the possibility of having more than one line pointing to apt repositories, one might want to put the fastest repository as the first line.

    rpm uri distribution component [component ...]

The uri points to the apt repository server.

distribution can specify an exact path. If you use this option, you'll need to ommit the component part and make it end in a slash.

apt will sort uri for its internal use, but it's very important that these lines are in order from your most preferred to least preferred package source (e.g. from the fastest to the lowest).

8.3. uri specification

You can use several sources for a uri.

Warning

Just remember that HTTP and FTP are the only tested methods and for safety, I'll just be documenting those here. As more methods become supported, they'll be documented here as well.

ftp

This method specifies an FTP connection to the repository server.

    ftp://ftp.conectiva.com/repository
http

This method specifies that you'll do a HTTP connection to the repository server.

    http://www.conectiva.com/repository