You are here

Upgrade Debian etch to lenny

Looks like there are three options to upgrade MySQL on debian etch:

 A.  Upgrade the entire machine to lenny.
 B.  Upgrade only MySQL (using third party [] repository).
 C.  Download MySQL and install from source.

A. Debian's official recommendation seems to be to upgrade the entire machine to lenny. This will get the system to a debian version that is maintained as etch is not maintained any more.

The official "how-to" is here:

I have verified that the Enswitch machine meets all the prerequisites on the link above (it is running 2.6.18 kernel and is using grub instead of Lilo for the bootloader). Need to do this again before the actual upgrade!

This is also a pretty good/concise procedure:
How to upgrade Debian Etch to Lenny

The basic steps for a full upgrade are:

  1. Backup machine in case of failure.
  2. Backup /etc, /var/lib/dpkg, /var/lib/aptitude/pkgstates, and capture the output of 'dpkg --get-selections "*" '
    # cp -Rp /etc /etc.etch
    # cp -Rp /var/lib/dpkg /var/lib/dpkg.etch
    # cp -Rp /var/lib/aptitude/pkgstates /var/lib/aptitude/pkgstates.etch
    # dpkg --get-selections "*" > ~/dpkg.get-selections.eth.txt # puts a file in your home folder
  3. Upgrade everything to the latest version of etch:
    # aptitude update
    # aptitude upgrade
    # if everything looks good, reboot
  4. Edit /etc/apt/sources-list and replace all mentions of "etch", with "lenny"
  5. Run the command "aptitude update". This just updates the package list but doesn't actually update the system.
  6. Upgrade the system in 3 parts separately:
    # aptitude install aptitude
    # aptitude upgrade
    # aptitude dist-upgrade
  7. Reboot

B. This is the procedure to upgrade only MySQL using the debian package manager:
Installing MySQL 5.1 on debian and ubuntu using apt
C. Installing from source is the least preferred option.

User login