softwatt <softw...@gmx.com> wrote:

> Hello. How does one upgrade the distro? I have searched the web but I
> am getting some contradictions, and I am hesitant to mess things up.

> All websites suggest updating the /etc/apt/sources.list file. This
> makes a lot of sense. However, the consensus ends here. Beyond that, I
> have no idea what's correct.

> Some suggest a simple `apt-get update` followed by an `apt-get
> dis-upgrade`

> Some suggest:
> apt-get update
> apt-get install apt dpkg aptitude
> apt-get --download-only dist-upgrade
> apt-get dist-upgrade

> Some even suggest updating the kernel using and apt-get install kernel-*
> stuff. (Subquestion: does dist-upgrade update the kernel?)

> Enlighten me! What is the proper way to do this?

The proper way is the way outlined in the relase notes.

That said: I normally use the way you mentioned above, only omitting the
"download-only" phase.

On some systems it has been necessary (during the Squeeze to Wheezy
upgrade) to first use only "apt-get upgrade" after upgrading apt and
dpkg and then issuing the full dist-upgrade as final step to get a
smoother upgrade. This where mostly systems which had already been
upgraded from Sarge to Etch to Lenny to Squeeze and had a good amount of
locally backported packages on them.

So YMMV, the older a system is the more problems or obscurities you have
to expect.

This leads to a newish trend in systems administration, facilitated by
widespread use of virtualisation or container techniques: never upgrade
a system to a new release, just "spawn" a new and fresh installed one
and copy your data/application/whatever over.

Combined with tools like Puppet/Chef/Ansible this provides you with a
reproducible and always "factory fresh" operating system without the
cobwebs of years of past upgrades in the basement.

But I digress.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/3b0hqg876...@mids.svenhartge.de

Reply via email to