Upgrading from YDL 2.3 to YDL 3.0

nathan r. hruby yellowdog-general@lists.terrasoftsolutions.com
Fri May 23 07:41:01 2003


On Thu, 22 May 2003, ron wrote:

> I can't really give you a sane answer about whether it is a prudent 
> thing to do because I don't know if anything would break from the 
> upgrade. What I do know is that the command to do it in one fell swoop 
> is:
> 
> yum upgrade
> 
> with no other arguments. This will update the entire system.
> 

If it were that easy, I'd be a happy camper.  But it isn't.  Yum isn't 
installed on 2.3, nor can you install it becuase Yum requires RPM 4.0.4 
(or 4.1.1. or 4.2, depending) and YDL 2.3 ships with rpm 4.0.3 because 
the version of apt that shipped with YDL-2.3 requires it.

This means that *minimally* you would need to:
1) Use apt to remove all non-essential RPM's
1.5) For saftey do an "rpm --rebuilddb"
2) Edit /etc/apt/sources.list to point at a YDL 3.0 distro
2.5) Do an "apt-get update"
3) Do an "apt-get install yum"
4) Edit /etc/yum.conf to point at a 3.0 mirror
5) Then do a "yum upgrade"

Now, that apt install yum command might just fsck your system but good, as 
yum is going to require a new rpm, rpm will require a new glibc, etc... 
etc.., you may want to simply try an "apt-get upgrade; apt-get 
dist-upgrade" instead and try to do the upgrade in one fell swoop.  Note 
that if apt dies halfway through, you're screwed becasue apt doesn't 
currently work in 3.0, hopefully the apt-get commands would have upgraded 
enough of your system to get the new version of rpm on there (and working) 
so you can use yum to finsh the job.  Failing that, you're in manual 
package depchecking land.  This is a worst case scenario.  Optimally, what 
will happen is that apt will upgrade rpm and it's dependacies happily, 
then be broken at the end of the run, but Yum will work and you can use a 
"yum upgrade" to ensure you're really running a 3.0 box.

I haven't tried any of this, but I'm hoping to get to it next week.

-n
-- 
----------------------------------------
nathan hruby <nathan@drama.uga.edu>
computer services specialist  
uga drama & theatre                        
reality is a moving target
----------------------------------------