How to upgrade Debian 6 to Debian 7

The following instructions are tested on 64 bit version only but should work with 32 bit system. Edit the file called /etc/apt/sources.list, enter:
# vi /etc/apt/sources.list
Find word squeeze and replace with wheezy. At the end it should look as follows:

 
deb http://mirrors.kernel.org/debian/ wheezy main
deb-src http://mirrors.kernel.org/debian/ wheezy main
 
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
 
# wheezy-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ wheezy-updates main
deb-src http://mirrors.kernel.org/debian/ wheezy-updates main
 

To update the package list, enter:
# apt-get update

To update the minimal base system, enter:
# apt-get upgrade

To upgrade the rest of the system, enter:
# apt-get dist-upgrade

Reboot the system:
# reboot

Verify your system, type:
$ lsb_release -a
Sample outputs:

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 7.0 (wheezy)
Release:	7.0
Codename:	wheezy
  • 39 Users Found This Useful
Was this answer helpful?

Related Articles

How to edit crontab in Ubuntu

For more detail information,you can man crontab Use crontab To open...

Buy VPS with BTCe

A bitcoin exchange is a service that enables a market for trading between the bitcoins and the...

Fix cPanel and WHM cPHulk brute force protection server lock out with SSH access

When you try to login too many times to WHM with wrong password the VPS hosting server or...

Secure copy files on VPS or dedicated server with SCP

Most of the time if you are using a VPS hosting server or own dedicated server you will need to...

Buy VPS with Payeer

VPS is a virtual private server. It’s basically a virtual server that gives you master...