LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian sarge sources.list e apt-get, first steps (https://www.linuxquestions.org/questions/debian-26/debian-sarge-sources-list-e-apt-get-first-steps-445635/)

Zingaro2002 05-17-2006 05:27 AM

Debian sarge sources.list e apt-get, first steps
 
Hi guys!

Maybe my question is too simple (excuse me).

I've just completed the installation of Debian Sarge 3.1r0a (with kde) from a dvd disc.

I want that my distro remains sarge because I will use it as a mini-server (web,mail,mysql,php,ftp,samba and something else) and so I moreover need stability and security.

At this moment my sources.list contains just a reference to the dvd disc.

How can I add official repositries (updated and fast)?

Also repositries with non-gpl packets are good (I know this is out of "Debian philosophy" but they can be useful).

Ehm... after modifying sources.list, is it enough to run
apt-get update

to update everything to the last sarge-stable version?


Thank you very very much for any kind of suggestion!
:)

nx5000 05-17-2006 06:45 AM

Add this in your /etc/apt/sources.list:

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

And apt-get update after this to take into account this list
Then apt-get upgrade to upgrade

Zingaro2002 05-17-2006 08:16 AM

just a doubt
 
Thank you very very much!

Just a doubt::confused:

I thought that apt-get upgrade should be used to convert a stable-sarge to an unstable-testing... I want to stay with sarge-stable!

Last thing: what's the difference between

apt-get upgrade
and
apt-get -f dist-upgrade

Thanks again!

nx5000 05-17-2006 08:25 AM

No, its apt-get dist-upgrade that is prefered when changing between release. See this: http://wiki.arslinux.com/Debian

apt-get -f , I've never used because was never needed and I don't like a stupid algorithm choosing for me.
If you will stay in sarge, I doubt you will have conflicts. Anyway aptitude has a better algorithm for resolving problems.

Zingaro2002 05-17-2006 09:24 AM

Thanks!
Thanks!

Michael_aust 05-17-2006 09:59 AM

if you just keep your sources list as was posted above then you wont ever have packages other then from sarge. If you did an apt-get dist-upgrade this would bring tyour system completely uptodate with sarge so all packages that had updates for sarge available would be upgraded.

Zingaro2002 05-17-2006 12:20 PM

Quote:

Originally Posted by Michael_aust
if you just keep your sources list as was posted above then you wont ever have packages other then from sarge. If you did an apt-get dist-upgrade this would bring tyour system completely uptodate with sarge so all packages that had updates for sarge available would be upgraded.

Thank you very much for your explanation!!!

Michael_aust 05-17-2006 02:12 PM

if you type in a terminal man apt-get it will tell you all of the cmmands for apt-get and what they do.

Zingaro2002 05-18-2006 02:55 AM

Here is my sources.list

#deb file:///cdrom/ sarge main

#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-2 (20050607)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ stable main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ stable main contrib non-free

# FASTWEB
deb http://debian.fastweb.it/debian/ stable main contrib non-free
deb-src http://debian.fastweb.it/debian/ stable main contrib non-free

#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

pljvaldez 05-19-2006 03:59 PM

Just one change I would make:
Quote:

Originally Posted by Zingaro2002
#deb file:///cdrom/ sarge main

#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-2 (20050607)]/ unstable contrib main
#deb cdrom:[Debian GNU/Linux 3.1 r0a _Sarge_ - Official i386 Binary-1 (20050607)]/ unstable contrib main

##############
### STABLE ###
##############
#Stable Sarge
deb ftp://ftp.it.debian.org/debian/ sarge main contrib non-free
#Stable Sarge Sources
deb-src ftp://ftp.it.debian.org/debian/ sarge main contrib non-free

# FASTWEB
deb http://debian.fastweb.it/debian/ sarge main contrib non-free
deb-src http://debian.fastweb.it/debian/ sarge main contrib non-free

#Security Updates Stable
deb http://security.debian.org/ sarge/updates main contrib non-free

I do this because at some point (currently estimated around Dec 2006) Debian will release a new stable version - Etch. So if you're tracking by the word "stable" your server would upgrade some packages to etch. I usually like to do dist-upgrades manually, so I'll track sarge until I'm confident etch has got a good review before dist-upgrading.

Zingaro2002 05-22-2006 08:28 AM

Quote:

Originally Posted by pljvaldez
Just one change I would make:

I do this because at some point (currently estimated around Dec 2006) Debian will release a new stable version - Etch. So if you're tracking by the word "stable" your server would upgrade some packages to etch. I usually like to do dist-upgrades manually, so I'll track sarge until I'm confident etch has got a good review before dist-upgrading.


Thank you very much!

I modified my sources.list according to your suggestions (I also prefer to do dist upgrade manually).
Thanks!


All times are GMT -5. The time now is 08:26 PM.