Rabu, 10 Juli 2013

Xathrya Sabertooth

Xathrya Sabertooth


Upgrade Debian from 6 (Squeeze) to 7 (Wheezy)

Posted: 09 Jul 2013 06:54 PM PDT

Debian always has at least three releases in active maintenance: stable, testing and unstable.

stable
The stable distribution contains the latest officially released distribution of Debian. This is the production release.
testing
The testing distribution contains packages that haven’t been accepted into a stable release yet, but they are in the queue for that. The main advantage of using this distribution is that it has more recent versions of software.
unstable
The unstable distribution is where active development of Debian occurs. Generally, this distribution is run by developers and those who like to live on the edge.

With new stable Debian release, Debian Wheezy, many new features introduced. To use Debian Wheezy, one can download and install the fresh Debian Wheezy, or upgrade the the previous one to the latest.

In this article, we will discuss about how to upgrade Debian Squeeze (version 6) to Debian Wheezy (version 7). The process will be carried on Virtual Machine, with following situation on:

  1. Slackware64 14.0 as host
  2. VirtualBox 4.2.16
  3. Debian Squeeze amd64

This method is generic therefore, you can also do this to actual production machine. It is also should be applied to x86 machine (32 bit).

For upgrade, you should have internet connection. This will be needed to download the update, though we can also use local repository but this is not recommended.

For the rest of article, I assume you use root privileges to execute command.

Preparation

Always do a backup!

It is important to make a backup of your system before you do this. The official Debian document recommends:

“The main things you’ll want to back up are the contents of /etc, /var/lib/dpkg, /var/lib/apt/extended_states and the output of dpkg –get-selections “*” (the quotes are important). If you use aptitude to manage packages on your system, you will also want to back up /var/lib/aptitude/pkgstates.

The upgrade process itself does not modify anything in the /home directory. However, some applications (e.g. parts of the Mozilla suite, and the GNOME and KDE desktop environments) are known to overwrite existing user settings with new defaults when a new version of the application is first started by a user. As a precaution, you may want to make a backup of the hidden files and directories ("dotfiles") in users’ home directories. This backup may help to restore or recreate the old settings. You may also want to inform users about this.”

Stage 1

First we need to edit our repository and point it to Wheezy repository.

Edit /etc/apt/sources.list. You can do it using any editor. Find words squeeze and replace it with wheezy. It is also recommended that you use nearest mirror repository (for example: http://kambing.ui.ac.id for Indonesia).

If you have done editing it, update it by using:

    apt-get update    

This will update the index and package list and point them to wheezy.

Stage 2

Next, upgrade the packages. We need this before upgrade our debian.

    apt-get upgrade    

Stage 3

Next, we upgrade the distribution itself.

    apt-get dist-upgrade    

After the upgrade, reboot the system.

    reboot    

Verify your system by invoking following command:

    lsb-release -a    

It should give you something like this:

    No LSB modules are available.    Distributor ID: Debian    Description: Debian GNU/Linux 7.0 (wheezy)    Release: 7.0    Codename: wheezy    

You should check the kernel version also. To do that, enter:

    uname -mrs    

Which should give you following output:

    Linux 3.2.0-4-amd64 x86_64    

Check for erros on log files:

    tail -f /var/log/messages    egrep -i --color 'err|warn|crit' /var/log/fileName    

At this point, our Debian has been upgrade to Wheezy. :D

Tidak ada komentar:

Posting Komentar