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