move to https://wiki.debian.org/SourcesList has fine explain

first i too no understand,through internet search engin ,find more article

but not leave a strong impression,too hope everybody not random search aritcle in internet.more more look origin document,could you 知所然,知其所以然。

entries format in sources.list,that follow:

deb http://site.example.com/debian distribution component1 component2 component3

deb-src http://site.example.com/debian distribution component1 component2 component3

deb it is pre-compiled,deb-src it is sorces code packages.

about after parameter distribution``component1.......

distribution it is release code name alias (squeeze, wheezy, jessie, sid) or the release class name(oldstable,stable,testing,unstable)

component1 have three option,

componenet1==main

main it is debian default option,when you install complete,you could look your location sources.list file.

after two component2,component3,can according to your own needs select.

if you want use non-free software.

add component2==contrib component3===non-free after main.

origin example sources.list for debian7 wheezy

deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main

deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main

deb http://security.debian.org/ wheezy/updates main

deb-src http://security.debian.org/ wheezy/updates main

if you want use non-free software ,example

deb http://http.debian.net/debian wheezy main contrib non-free
deb-src http://http.debian.net/debian wheezy main contrib non-free

deb http://http.debian.net/debian wheezy-updates main contrib non-free
deb-src http://http.debian.net/debian wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free

deb-src http://security.debian.org/ wheezy/updates main contrib non-free


my_ywp
172 声望2 粉丝