Begining of this month, May 04 2013, Debian has released their new stable version 7 Wheezy. It is very important to update your OS and make sure all the packages installed in your system are up to update. In this post, I will explain how I did upgrade my OS 6 to 7.
As usually, like any other update, their are few steps that you have to take in case anything goes wrong. (Plan B) :
So, here are few list :
1. Make backup of your data and configuration (any file or program that you have tweak to your needs)
2. Plan a time to do the update
3. Inform concern users if you are using in production side
4. Now a days, we use VM for everything. So, why not, simulate an update in your VM and make sure everything goes smooth when you will be doing in real machine.
5. Of course, if your production machines are all VM and you want update, Do not forget to make Snapshot before the update
6. Make sure that your hardware support the newest version
7. Current should be clean and up to date : apt-get clean; apt-get autoremove; apt-get update; apt-get upgrade
7. In the end, remember that, the user simply want a working system, so, newest or oldest version does not really matter for them. All they want is to be able to work. Brief, if you are unable to update your system, make sure you can do recovery of the old system.
For complete list and details information visit : http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.html
Once, you acknowledge all these issue, now, it’s time to do the update and it is recommend that your are connected the server directly in case you loose internet connection.
I am using Debian 6 64bit.
1. First update your sources.list : vim /etc/apt/sources.list and the the following list and make sure to comment all default existing link
deb http://ftp.ca.debian.org/debian wheezy main
deb-src http://ftp.ca.debian.org/debian wheezy main deb http://ftp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.debian.org/debian/ wheezy-updates main deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
I use this website to generate the link and until now, the website is not up to date about the new release so does work well but I did some changes to answer my needs.
To caputre the log and command you type for the update :
script -t 2>~/upgrade-wheezy
step.time -a ~/upgrade-wheezy
To stop the capture : simply type exit
First, we do minimal upgrade
After, if you want/can, do a fully upgrade (visit this page to know the difference)
After make sure that you have the correct kernel version. Normally, it will install when you execute the apt-get dist-upgrade command. To verify that if you have correct kernel version kernel, execute the following command :
dpkg -l “linux-image*” | grep ^ii
If you do not see any output, that’s mean you have to install the kernel manually. To see available kernel, execute the command :
apt-cache show linux-image-amd64
Choose the kernel that you want and execute apt-get install. Another way to find kernel version is uname -r
After reboot the server to make all the changes. During the start up, you can choose which kernel you want use.
That’s it folks for the update information.
You can find all the details information about this update at I consult to write this post : http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.html
Do not hesitate to ask, if you have any question.
Release Info : http://www.debian.org/News/2013/20130504
Upgrade information : http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.html
Source link creation : http://debgen.simplylinux.ch/
Disclaimer: All work shared in this post is property of IT Secure Net