Upgrading Slackware over multiple versions

I had a server at work that had been set up on Slackware a few years ago and left. It was Slackware 12.0. I wanted to get it up to date with all the security patches. I decided to use slackpkg to get it up to 13.0 in stages. The server was live, and in use, but not heavily in use.

slackpkg wasn’t installed. I downloaded the appropriate slackpkg package from http://www.slackpkg.org/stable/ and went through them till I found the one that matched Slackware 12.0. I installed it with installpkg, aimed the mirror appropriately for Slackware 12.0 and let it rip. It updated all the security patches and got 12.0 right. I adjusted all the config files, and then rebooted.

It came up okay, so I aimed the mirror at Slackware 12.1 and let it rip. Adjusted the config files, rebooted, and it was still okay. I was feeling good at this stage. So I did it for Slackware 12.2 and then rebooted and it was still okay. Good thing this server is lightly used and wasn’t interfering with customers.

So finally, it came to Slackware 13.0. I adjusted the mirror, let slackpkg do its thing, adjusted the config files, and rebooted once again. It came up okay. I checked it, everything was functioning, and it’s all good.

I was very surprised. So now that server is completely up to date, all security issues up to date, and the upgrades were barely noticeable to customers. The only time they might have noticed anything was during the few minutes while the system was rebooting each of those times.

However, if something had gone wrong, they would have noticed because I would have had to install from scratch. I was ready, I had contingency plans, but they weren’t needed. It was a good result.

3 Comments

mfillpotFebruary 7th, 2010 at 5:13 pm

Congrats, it sounds like it went over far easier than I thought it would.

hgriggsFebruary 7th, 2010 at 5:32 pm

I think it went easier for me than last time because I was more experienced, I took smaller steps, rebooted in between each change, and just took my time and was careful. I have one more server at home that needs to be upgraded. It’s stuck at 10.2 and I am reluctant to do anything directly to it. Best is probably to build a new server, reproduce the functionality and switch it in.

mfillpotFebruary 7th, 2010 at 7:43 pm

If the hardware in your old server is still capable of doing the job then it can be a good experience upgrading it, and if the service is not extremely important then you can just put the services in a new machine if you have problems. But as I can see security updates are still being shipped for 12.2 so you are still covered for some time.

Leave a comment

You must be logged in to post a comment.