How do i upgrade to lenny?

If none of the more specific forums is the right place to ask

How do i upgrade to lenny?

Postby vector9 » 2007-09-17 22:19

What do i type to upgrade to lenny?

do i edit the sources with

deb file:/var/cache/apt-build/repository/ apt-build main
deb http://ftp.us.debian.org/debian/ lenny main contrib
deb http://security.debian.org/ lenny/updates main contrib


and type this in the terminal?


aptitude update && aptitude upgrade && aptitude dist-upgrade
vector9
 
Posts: 21
Joined: 2007-09-12 00:25

Postby MeanDean » 2007-09-17 23:51

not sure about the && voodoo
dont think you need the lenny updates line
not sure what the deb file line is either

but yea, thats it
Last edited by MeanDean on 2007-09-17 23:52, edited 1 time in total.
MeanDean
 
Posts: 2664
Joined: 2007-09-01 01:14
Location: some other forum!

Re: How do i upgrade to lenny?

Postby kc1di » 2007-09-17 23:51

vector9 wrote:What do i type to upgrade to lenny?

do i edit the sources with

deb file:/var/cache/apt-build/repository/ apt-build main
deb http://ftp.us.debian.org/debian/ lenny main contrib
deb http://security.debian.org/ lenny/updates main contrib


and type this in the terminal?


aptitude update && aptitude upgrade && aptitude dist-upgrade


your /etc/apt/sources.list should look similar to the following
deb http://ftp.debian.org/debian/ lenny main
deb-src http://ftp.debian.org/debian/ lenny main

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

then in a terminal type apt-get update
then apt-get dist-upgrade
should do it.

Cheer!
Dave
Morse Code -An Early digital mode !
Lenny on AMD Athlon
John 3:16
Registered Linux User # 462608
User avatar
kc1di
 
Posts: 122
Joined: 2007-03-12 12:52
Location: Somewhere In Maine

Postby Lavene » 2007-09-18 04:21

MeanDean wrote:not sure about the && voodoo
dont think you need the lenny updates line
not sure what the deb file line is either

but yea, thats it

The && is not really woodoo. It just mean "continue with the next command if the first exits without errors". ;)
Oh, and Lenny has the security repo...

Tina
Lavene
Site admin
 
Posts: 5099
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby MeanDean » 2007-09-18 04:45

voodoo I tell ya :!:

Yea, I thought they started doing testing security but the packages page still says that testing does not get updates. AFAIK security updates for testing go into unstable and trickle down into testing a bit later so I am not sure how important security updates are unless you want the fix immediately.

But thanks for clearing that up, good info!
MeanDean
 
Posts: 2664
Joined: 2007-09-01 01:14
Location: some other forum!

Postby morgainebrigid » 2008-10-17 17:45

your /etc/apt/sources.list should look similar to the following
deb http://ftp.debian.org/debian/ lenny main
deb-src http://ftp.debian.org/debian/ lenny main

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

then in a terminal type apt-get update
then apt-get dist-upgrade
should do it.


Exactly the direct and to-the-point information I've been looking for. Should be a 'sticky.'
User avatar
morgainebrigid
 
Posts: 33
Joined: 2008-10-08 15:04
Location: Boise

Postby Telemachus » 2008-10-17 19:04

The nice thing about the && hoodoo is that you type the whole line once, but subsequent commands only run if each preceding one exits "successfully" (ie, without any errors). It saves you from waiting and typing subsequent commands after each one finishes, so it's a good trick to have up your sleeve.

@ morgainebrigid - the advice you like is brief and to the point, but I would recommend this instead
Code: Select all
aptitude update && aptitude dist-upgrade


After updating your aptitude package manager itself, that would become
Code: Select all
aptitude update && aptitude full-upgrade
"We have not been faced with the need to satisfy someone else's requirements, and for this freedom we are grateful."
Dennis Ritchie and Ken Thomspon, The UNIX Time-Sharing System
User avatar
Telemachus
 
Posts: 3927
Joined: 2006-12-25 15:53

Postby rickh » 2008-10-17 19:19

Lenny will soon move to Stable, and there will be Release Notes to warn of potential difficulties in the transition.

Here is a set of instructions for a cautious upgrade, which may be a good idea.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3477
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby SLEDopit » 2008-10-17 19:20

Telemachus wrote:@ morgainebrigid - the advice you like is brief and to the point, but I would recommend this instead
Code: Select all
aptitude update && aptitude dist-upgrade


After updating your aptitude package manager itself, that would become
Code: Select all
aptitude update && aptitude full-upgrade
not. you're not right.
man aptitude wrote: full-upgrade
Upgrades installed packages to their most recent version, removing or installing packages as necessary. This command is less conservative than safe-upgrade and thus more likely to perform unwanted actions. However, it is capable of upgrading packages that safe-upgrade cannot upgrade.
Note
This command was originally named dist-upgrade for historical reasons, and aptitude still recognizes dist-upgrade as a synonym for full-upgrade.
SLEDopit
 
Posts: 74
Joined: 2008-10-17 15:19

Postby Telemachus » 2008-10-17 23:04

SLEDopit wrote:
Telemachus wrote:@ morgainebrigid - the advice you like is brief and to the point, but I would recommend this instead
Code: Select all
aptitude update && aptitude dist-upgrade


After updating your aptitude package manager itself, that would become
Code: Select all
aptitude update && aptitude full-upgrade
not. you're not right.
man aptitude wrote: full-upgrade
Upgrades installed packages to their most recent version, removing or installing packages as necessary. This command is less conservative than safe-upgrade and thus more likely to perform unwanted actions. However, it is capable of upgrading packages that safe-upgrade cannot upgrade.
Note
This command was originally named dist-upgrade for historical reasons, and aptitude still recognizes dist-upgrade as a synonym for full-upgrade.

Well, fair enough, you could continue to use the old name, but why would you want to? Oddly, if you enter aptitude update, aptitude complains that upgrade is deprecated and you should enter safe-upgrade - the new version. But, you are correct, you can still enter dist-upgrade.
"We have not been faced with the need to satisfy someone else's requirements, and for this freedom we are grateful."
Dennis Ritchie and Ken Thomspon, The UNIX Time-Sharing System
User avatar
Telemachus
 
Posts: 3927
Joined: 2006-12-25 15:53

Postby kazordoon » 2009-04-16 21:25

just a silly question: how can i know if i'm using lenny or etch ?
kazordoon
 
Posts: 21
Joined: 2007-11-09 13:37

Postby errefmecul » 2009-04-16 21:30

kazordoon wrote:just a silly question: how can i know if i'm using lenny or etch ?


Just type

less /etc/debian_version
errefmecul
 
Posts: 12
Joined: 2008-01-30 11:43
Location: Sweden

Postby kazordoon » 2009-04-16 21:35

Code: Select all
debian:~#  less /etc/debian_version
5.0.1
debian:~#


do I have lenny ?
kazordoon
 
Posts: 21
Joined: 2007-11-09 13:37

Postby garrincha » 2009-04-16 21:37

kazordoon wrote:
Code: Select all
debian:~#  less /etc/debian_version
5.0.1
debian:~#


do I have lenny ?

Yes.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2344
Joined: 2006-06-02 16:38


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest