Upgrade slackware 12.1 to 12.2

The problem came from my wish to install lampp again. I can’t install it cause some thing crash with the original apache server.
So suddenlly I want to upgrade the slackware to 12.2. so Finally the step I already wrote in this web, is step that I did to upgrade.

These are the step
1. Change to init 1

#init 1

2. Became a root or login again as root
3. mount the cd or iso of slackware 12.2 to some directory. I use /mnt/dvd

#mount -o loop /dev/hdc /mnt/dvd

/dev/hdc is the device of my dvd.
4. the important things is to upgrade these package first. Don’t forget to do this.

#upgradepkg /mnt/dvd/slackware/a/glibc-solibs*.tgz
#upgradepkg /mnt/dvd/slackware/a/pkgtools*.tgz

5. Now the upgrade package but with different option.

#upgradepkg -install-new /mnt/dvd/slackware/*/*.tgz

6. Wait untill all finished.
7. You may take a look at the upgrade.txt file inside the cd of slackware 12.2 there’s a lead to upgrade the slackware. Especially how to change the setting of your old slackware into a new one. You may use the script inside. But not me. I want to preserve the basic setting and use it in my new slackware. So I didn’t use the script. I did it manually.
The upgrade created the .new extention file in /etc/ and /etc/rc.d/. Actually those new files that you need to copy to your old files. These files are the preserved files.
a. /etc/passwd
b. /etc/group
c. /etc/shadow

#mv /etc/passwd.new /home/user
#mv /etc/group.new /home/user
#mv /etc/shadow.new /home/user
#mv /etc/X11/xorg.conf.new /home/user

I moved the .new files to my directory cause who knows something wrong happened and I need to returned those files. In this case I use those old files setting so I can use the login username as same as I already created and the same configuration for my monitor.
8. Here you can use the script I mentioned in number 7 to copy the new extention to the old files. Except you have other edited setting you want to preserve in /etc/ and /etc/rc.d
9. go to init 3 again.

#telinit 3

10 Restart your slackware.

Now you have your new slackware.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.