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

Buy web hosting with Interac

Web Hosting With Interac Various business entities have realized that internet marketing is the...

How to remove installed RPM package

If the package is installed via RPM, first find the name of the RPM package: rpm -qa | grep...

Buy web hosting with Przelewy24

Web Hosting With Przelewy24 The internet allows people to interact and communicate from...

Buy web hosting with PayPal

Web hosting and PayPal payment method. Each web host offers various types of hosting plans. They...

Buy web hosting with SolidTrust Pay

Webhosting With SolidTrustPay   What is webhosting?   Webhosting involves the...