Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The product I develop for work is a customised Ubuntu 8.04 LTS system with a number of back ported packages and a number of our own for the application specific stuff.

Now that 10.04 has been released it's time to start thinking about how we move our customers towards the latest LTS release. I'm currently considering the best approach to do this, preferably all triggered from a package upgrade.

I currently have a "meta" package which contains a number of prerequisites for our flavour of Ubuntu. I was thinking of issuing updated version of this in our current repo with a few upgrade scripts to be run from postinst. This would trigger the distro upgrade and then switch the custom repo bits to point to the new packages directory built against 10.04.

Is there a command line for trigger the distro upgrade? Is this the best way to proceed?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Your postinst could run whatever custom scripts need to happen, and finally, you could trigger the distro upgrade with:

sed -i 's/hardy/lucid' /etc/apt/sources.list
apt-get update
apt-get install dpkg apt
apt-get dist-upgrade

Your scheme could work, with plenty of testing. There may be still small things that fail and will need to be resolved by hand, but this should at least get you started.

share|improve this answer
    
Is there a way to set a pre-requisite on my updated packages so the entire distro upgrade process is completed before attempting to upgrade my packages? –  stsquad Oct 13 '10 at 12:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.