1SOURCES.LIST(5) SOURCES.LIST(5)
2
3
4
6 sources.list - Package resource list for APT
7
9 The package resource list is used to locate archives of the package
10 distribution system in use on the system. This control file is located
11 in /etc/apt/sources.list and additionally any files ending in .list in
12 /etc/apt/sources.list.d are included.
13
14 The source list is designed to support any number of active sources and
15 a variety of source media. The file lists one source per line, with the
16 most preferred source listed first. The format of each line is: type
17 uri args. The first item, type, determines the format for args. uri is
18 a Universal Resource Identifier (URI), which is a superset of the more
19 specific and well-known Universal Resource Locator, or URL. The rest of
20 the line can be marked as a comment by using a #.
21
22 The generic format of sources.list entry is:
23
24 type baseuri distribution [component comp2 ...]
25
26 Type is one of the types explained below. Baseuri is the URI to the
27 root of given distribution, distribution part points to a given distri‐
28 bution name, version and architecture. The splitting of URI into
29 baseuri and distribution parts should be done in a way that allows
30 pointing the baseuri to another mirror without touching distribution.
31 Some types additionally support a component-entry.
32
33 The following variable substitutions are done on sources.list entries:
34 $(ARCH) is substituted with the base archecture of the system.
35
36 $(VERSION) is substituted with the distribution version if configured
37 automatically via Apt::DistroVerPkg or manually via Apt::DistroVersion
38 configuration option.
39
41 The format of repomd and repomd-src sources.list entries is:
42
43 repomd baseuri distribution
44
45 repomd-src baseuri distribution
46 Repomd repositories do not support a concept of "components"!
47
49 The format of rpm and rpm-src sources.list entries is:
50
51 rpm baseuri distribution component [comp2 ...]
52
53 rpm-src baseuri distribution component [comp2 ...]
54 At least one component must be specified for rpm and rpm-src reposito‐
55 ries.
56
58 The format of rpm-dir and rpm-src-dir sources.list entries is:
59
60 rpm-dir baseuri distribution component [comp2 ...]
61
62 rpm-src-dir baseuri distribution component [comp2 ...]
63 At least one component must be specified for rpm and rpm-src reposito‐
64 ries. Rpm-dir and rpm-src-dir only accept file:// uri's!
65
67 The currently recognized URI types are cdrom, file, http, and ftp.
68
69 file The file scheme allows an arbitrary directory in the file system
70 to be considered an archive. This is useful for NFS mounts and
71 local mirrors or archives.
72
73 cdrom The cdrom scheme allows APT to use a local CDROM drive with
74 media swapping. Use the apt-cdrom(8) program to create cdrom
75 entries in the source list.
76
77 http The http scheme specifies an HTTP server for the archive. If an
78 environment variable http_proxy is set with the format
79 http://server:port/, the proxy server specified in http_proxy
80 will be used. Users of authenticated HTTP/1.1 proxies may use a
81 string of the format http://user:pass@server:port/ Note that
82 this is an insecure method of authentication.
83
84 ftp The ftp scheme specifies an FTP server for the archive. APT's
85 FTP behavior is highly configurable; for more information see
86 the apt.conf(5) manual page. Please note that a ftp proxy can be
87 specified by using the ftp_proxy environment variable. It is
88 possible to specify a http proxy (http proxy servers often
89 understand ftp urls) using this method and ONLY this method. ftp
90 proxies using http specified in the configuration file will be
91 ignored.
92
93 copy The copy scheme is identical to the file scheme except that
94 packages are copied into the cache directory instead of used
95 directly at their location. This is useful for people using a
96 zip disk to copy files around with APT.
97
98 rsh
99
100 ssh The rsh/ssh method invokes rsh/ssh to connect to a remote host
101 as a given user and access the files. No password authentication
102 is possible, prior arrangements with RSA keys or rhosts must
103 have been made. Access to files on the remote uses standard
104 find and dd commands to perform the file transfers from the
105 remote.
106
108 Repomd entries for Fedora Core, Extras and Updates using variable sub‐
109 stitution, assumes Apt::DistroVerPkg is set to "fedora-release":
110
111 repomd http://download.fedora.redhat.com/pub/ fedora/linux/core/$(VERSION)/$(ARCH)/os/
112 repomd http://download.fedora.redhat.com/pub/ fedora/linux/extras/$(VERSION)/$(ARCH)/
113 repomd http://download.fedora.redhat.com/pub/ fedora/linux/core/updates/$(VERSION)/$(ARCH)/
114
115
116 Local mirror (local disk, NFS mounted etc) of Fedora Core at
117 /var/www/html/fedora/
118
119 repomd file:/var/www/html fedora/linux/core/$(VERSION)/$(ARCH)/
120
121
123 apt-cache(8) apt.conf(5)
124
126 See the APT bug page <URL:http://bugs.debian.org/src:apt>. If you wish
127 to report a bug in APT, please see /usr/share/doc/debian/bug-report‐
128 ing.txt or the reportbug(1) command.
129
131 APT was written by the APT team <apt@packages.debian.org>.
132
133
134
135 02 August 2007 SOURCES.LIST(5)