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:
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:
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. PreparationAlways 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 1First 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 2Next, upgrade the packages. We need this before upgrade our debian. apt-get upgrade Stage 3Next, we upgrade the distribution itself. apt-get dist-upgrade After the upgrade, reboot the system. reboot
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. |
You are subscribed to email updates from Xathrya Sabertooth To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Tidak ada komentar:
Posting Komentar