Contents of sources.list

New to Debian (Or Linux in general)? Ask your questions here!

Contents of sources.list

Postby JR657 » 2018-07-15 14:56

Hello,

I recently installed Debian Stretch and now I'm trying to figure out what to put in the sources.list file. I have done some research and this is what I have so far:

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

deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main

Is this all I have to place in the file? Will I get all the security and package upgrades?

Thank you
JR657
 
Posts: 7
Joined: 2018-07-15 14:48

Re: Contents of sources.list

Postby 4D696B65 » 2018-07-15 15:23

JR657 wrote:Is this all I have to place in the file?
yes
JR657 wrote:Will I get all the security and package upgrades?
yes
User avatar
4D696B65
 
Posts: 2220
Joined: 2009-06-28 06:09

Re: Contents of sources.list

Postby Head_on_a_Stick » 2018-07-15 15:32

You don't need the deb-src lines (unless you want to compile stuff from source), https can be used instead of plain http if the apt-transport-https package is installed and https://deb.debian.org/ can also be used with the Security repositories, here is my list:
Code: Select all
empty@hegel:~ $ cat /etc/apt/sources.list                                                             
deb https://cdn-aws.deb.debian.org/debian/ stretch main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch main

deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch-updates main

deb https://cdn-aws.deb.debian.org/debian-security stretch/updates main
#deb-src https://cdn-aws.deb.debian.org/debian-security stretch/updates main

deb https://cdn-aws.deb.debian.org/debian/ stretch-backports main
empty@hegel:~ $

^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8322
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Contents of sources.list

Postby JR657 » 2018-07-15 15:34

4D696B65 wrote:
JR657 wrote:Is this all I have to place in the file?
yes
JR657 wrote:Will I get all the security and package upgrades?
yes


Thank you.
JR657
 
Posts: 7
Joined: 2018-07-15 14:48

Re: Contents of sources.list

Postby JR657 » 2018-07-15 15:37

Head_on_a_Stick wrote:You don't need the deb-src lines (unless you want to compile stuff from source), https can be used instead of plain http if the apt-transport-https package is installed and https://deb.debian.org/ can also be used with the Security repositories, here is my list:
Code: Select all
empty@hegel:~ $ cat /etc/apt/sources.list                                                             
deb https://cdn-aws.deb.debian.org/debian/ stretch main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch main

deb https://cdn-aws.deb.debian.org/debian/ stretch-updates main
#deb-src https://cdn-aws.deb.debian.org/debian/ stretch-updates main

deb https://cdn-aws.deb.debian.org/debian-security stretch/updates main
#deb-src https://cdn-aws.deb.debian.org/debian-security stretch/updates main

deb https://cdn-aws.deb.debian.org/debian/ stretch-backports main
empty@hegel:~ $

^ As you can see, backports also work with deb.debian.org; cdn-aws saves a redirect.


Thank you. I will make the changes asap.
JR657
 
Posts: 7
Joined: 2018-07-15 14:48

Re: Contents of sources.list

Postby arochester » 2018-07-15 16:29

Are we to assume that you do not wish contrib and non-free?

https://wiki.debian.org/SourcesList
arochester
 
Posts: 1349
Joined: 2010-12-07 19:55

Re: Contents of sources.list

Postby JR657 » 2018-07-15 16:32

arochester wrote:Are we to assume that you do not wish contrib and non-free?

https://wiki.debian.org/SourcesList


Thanks for the link. I only want to use main.
JR657
 
Posts: 7
Joined: 2018-07-15 14:48

Re: Contents of sources.list

Postby Bulkley » 2018-07-15 17:24

arochester wrote:Are we to assume that you do not wish contrib and non-free?


I use contrib and non-free for specific packages; otherwise I hash # them out. I did some testing and found that there is just no need to keep them open. Also, I have occasionally added third party sources for specific software. I block those sources immediately after obtaining what I want. Open sources can bring little presents that I really don't want.

Some third party software will run in user space. That's great. I can grab it, try it, use it all the while not allowing it access to my Debian system.
Bulkley
 
Posts: 5667
Joined: 2006-02-11 18:35


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable