CDROM-based 2.2-2.3 Upgrade

Henry A. Leinhos yellowdog-general@lists.terrasoftsolutions.com
Mon Aug 26 11:29:01 2002


This isn't quite a HOW-TO, but I thought I'd post my experience 
upgrading from YDL2.2 to YDL2.3 using the install CDROM only (I only 
have a dialup connection to the net!)

(For more information regarding apt-get, check out 
http://www.debian.org/doc/manuals/apt-howto)

I upgraded from a stock YDL2.2 install on my B+W G3 350 to YDL2.3 via 
CDROM.  It's *almost* a net-free upgrade,  but I had to get the apt rpm 
over the web first.


Step 1. Install the apt rpm:

 > rpm -ivh 
ftp://ftp.yellowdoglinux.com/pub/yellowdog/yellowdog-2.2/ppc/YellowDog/ppc/apt-0.3.19cnc55-1b.ppc.rpm

Step 2. Add the CDROM to your /etc/apt/sources.list file (see the 
APT-HOWTO, section 2.4):

 > apt-cdrom add

You will be prompted to insert your CDROM and hit enter.  After the 
contents are read, you'll be prompted for a name for the CDROM.  The 
process repeats for each CDROM you insert (I did all three CDs: 'YDL2.3 
Install', 'YDL2.3 Extras', 'YDL2.3 Sources')

Step 3.  Get the latest file lists from the Yellowdog (or mirror) ftp 
site (this isn't exactly necessary, but will prevent several error 
messages later on):

 >apt-get update

Step 4.  Do the upgrade:

 > apt-get dist-upgrade

I got several dependency errors (related to kde-2.2 rpms), so I had to 
rpm -e <list of broken packages> until the dependencies were clean. 
 Then I got a list of around 141 packages to be updated.  It's a good 
idea to save the output here so that you can update any new 
configuration files that were saved as *.rpmnew during the upgrade process.

Step 5.  Upgrade the kernel

The apt-get  dist-upgrade doesn't update the kernel, so you'll have to 
do that separately with rpm:

 > mount /mnt/cdrom
 > cd /mnt/cdrom/YellowDog/ppc
 > rpm  -Uvh kernel-2.4.19-4a.ppc.rpm kernel-headers-2.4.19-4a.ppc.rpm 
kernel-source-2.4.19-4a.ppc.rpm

(the kernel source is optional, but some source packages assume a 
configured source tree is installed)

Assuming that your /etc/yaboot.conf  file  loads /boot/vmlinux by 
default, you should be able to reboot with the new kernel now.

At this point, if you have a fast internet connection, you could also 
perform an apt-get upgrade to update the base 2.3 install to the latest 
off the yellowdog ftp server.

Step 6.  Reboot with the new kernel

 > reboot


Everything seemed to work after the reboot, but that's probably because 
I didn't have any special configurations to restore/install.


Henry