Coming Underground
« Using recent Catalyst with uclibcAPC UPS STATUS ONLINE LOWBATT »

Upgrading a very old (2006.1) Gentoo install to current

Permalink 2009-12-10 15:06, by jaervosz, Categories: Gentoo Tips, Gentoo, Universe/English

I just had an old Gentoo install to upgrade and quickly realized that it was easier said than done. There is no supported upgrade path for very old Portage versions.

I quickly found darkside's blog post Gentoo: Tips to upgrade your really old installation.

My install was x86 so I had to modify it a bit, and without thinking I had upgraded to bash-4, which needs a recent glibc, so this pretty much hosed the complete system.

Though a quich chroot allowed me to pull glibc from tinderbox and luckily it worked. After that I rebuild the complete system. The following is more or less the COMPLETELY UNSUPPORTED procedure I used:


#!/bin/bash

ARCH="x86"
PYTHONVER="2.6.2-r1"
BASHVER="4.0_p28"
PORTAGEVER="2.1.6.13"
GLIBCVER="2.9_p20081201-r2"

wget http://tinderbox.dev.gentoo.org/default-linux/${ARCH}/dev-lang/python-${PYTHONVER}.tbz2
wget http://tinderbox.dev.gentoo.org/default-linux/${ARCH}/app-shells/bash-${BASHVER}.tbz2
wget http://tinderbox.dev.gentoo.org/default-linux/${ARCH}/sys-apps/portage-${PORTAGEVER}.tbz2
wget http://tinderbox.dev.gentoo.org/default-linux/${ARCH}/sys-libs/glibc-${GLIBCVER}.tbz2

cd /
tar xfpj root/python-${PYTHONVER}.tbz2
tar xfpj root/glibc-${GLIBCVER}.tbz2
tar xfpj root/bash-${BASHVER}.tbz2
tar xfpj root/portage-${PORTAGEVER}.tbz2

emerge -va portage --nodeps
emerge -Cva man-pages
rm /etc/locales.build
emerge -va e2fsprogs
emerge -Cva mktemp && emerge -va sys-apps/coreutils
. /etc/profile
emerge -eva system
XZ_OPT="--memory=128M" emerge -eva world

Had to use the XZ_OPT hack since my system had only 128mb of RAM.

After rebuilding the complete system I haven't found any problems with it yet...

2 comments »Send a trackback »

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

2 comments

Comment from: Jeremy Olexa [Visitor] · http://blog.jolexa.net
Heh, yea. That post is the most popular one I have. It averages 30 views per day, all time 7100 views.
2009-12-10 @ 20:21
Comment from: Gregory Becler [Visitor] Email
The version used in the script have been replaced by the following:

ARCH="x86"
PYTHONVER="2.6.4"
BASHVER="4.0_p35"
PORTAGEVER="2.1.6.13"
GLIBCVER="2.10.1-r1"
2010-02-06 @ 14:00

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

©2010 by admin

Contact Jaervosz