Reinstalling Salix (and other Slacks) / Switch 32 to 64 bits

Post Reply
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Reinstalling Salix (and other Slacks) / Switch 32 to 64 bits

Post by damNageHack » 31. Dec 2009, 12:22

Just a short notice how I reinstalled my system here. Switching from Salix32 to Salix64.

To keep all installed packages use this process:

1. Enter following command (before reinstallation) in console from your user directory:

Code: Select all

ls /var/log/packages/ |sed -e "s/-[0-9].*//" >packages.log
2. Backup your /etc/fstab and /home.
( /home should be mounted to a separate partition in the best case, but a backup can not harm anyway 8-) )
Tipp: Copy /etc/fstab (or maybe your complete /etc folder) to /home, then you have to do only a backup of /home including your /etc.

3. Reinstall with keeping your partition table as it is. Do not change anything in cfdisk, just Quit.

4. Let Setup mount / and /home as it was before.

5. After rebooting into the new system, copy /etc/fstab (or complete /etc if so wanted) from the backup back. Maybe do mount -a in console to get the other partitions mounted again ( I only use a separate partition for /home ).

6. In console, do the following command to install additional packages again (which are not on the installation iso):

Code: Select all

for file in `cat packages.log` ; do slapt-get -y -i $file ; done
Please note that this command will install your loved packages again just as it was before the reinstallation, but it can sometimes be a problem because of the naming of packages. So you have maybe to install some of those packages manually again by [g]slapt, but it should do the trick for most of them.
Because of the for, it will skip each package with an error and proceed with the next one. Giving all packages as one parameter to slapt-get (only one instance started) will result in slapt breaking at the first package error.
Last edited by damNageHack on 25. Jan 2010, 23:31, edited 2 times in total.
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Reinstalling Salix (and other Slacks) / Switch 32 to 64 bits

Post by thenktor » 31. Dec 2009, 12:30

damNageHack wrote:5. After rebooting into the new system, copy /etc/fstab (or complete /etc if so wanted) from the backup back.
I've reused the whole /etc directory and you will run into troubles if you do so :mrgreen:
After copying the /etc dir you have to do:

Code: Select all

rm -rf /etc/gtk-2.0/i486-slackware-linux/
slapt-get -u
slapt-get -i --reinstall gtk+2
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Reinstalling Salix (and other Slacks) / Switch 32 to 64 bits

Post by damNageHack » 31. Dec 2009, 12:44

thenktor wrote:
damNageHack wrote:5. After rebooting into the new system, copy /etc/fstab (or complete /etc if so wanted) from the backup back.
I've reused the whole /etc directory and you will run into troubles if you do so :mrgreen:
After copying the /etc dir you have to do:

Code: Select all

rm -rf /etc/gtk-2.0/i486-slackware-linux/
slapt-get -u
slapt-get -i --reinstall gtk+2
Yes, and you probably should not do it in a running X or a runlevel greater than 2 :!:

Code: Select all

init 2
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.

Post Reply