Difference between revisions of "How to upgrade Salix 13.37 to 14.0"

From Salix OS
Jump to: navigation, search
(Obsolete packages)
(Obsolete packages)
Line 67: Line 67:
 
  xf86-video-xgi
 
  xf86-video-xgi
 
And this NOTE: After upgrading, the following obsolete KDE packages should be removed:
 
And this NOTE: After upgrading, the following obsolete KDE packages should be removed:
  kdeaccessibility kdebase kdebase-runtime kdebase-workspace kdebindings kdeedu kdegraphics kdeutils koffice konq-plugins kopete-cryptography polkit-kde-1 koffice-l10n-*
+
  kdeaccessibility kdebase kdebase-runtime
 +
kdebase-workspace kdebindings kdeedu
 +
kdegraphics kdeutils koffice konq-plugins
 +
kopete-cryptography polkit-kde-1 koffice-l10n-*
  
 
= Upgrading the kernel =
 
= Upgrading the kernel =

Revision as of 07:06, 3 August 2012

NOTICE: This is a work in progress and is currently a guide to upgrade your system to current, which will in time become Salix 14.0. A lot of things might still change until 14.0 is actually released.

Contents

Preparing for the upgrade

Before you start it might be a good idea to install the glibc-solibs package from the 13.37 repository:

slapt-get -i glibc-solibs

You first need to change the default repositories to the ones for Slackware and Salix 14.0. Open file /etc/slapt-get/slapt-getrc and change all "13.37" instances to "current". Also make sure the Slackware repositories have an OFFICIAL priority. Example setups are show below:

i486 architecture

SOURCE=http://salix.enialis.net/i486/slackware-current/:OFFICIAL
SOURCE=http://salix.enialis.net/i486/slackware-current/extra/:OFFICIAL
SOURCE=http://salix.enialis.net/i486/current/:PREFERRED

x86_64 architecture

SOURCE=http://salix.enialis.net/x86_64/slackware-current/:OFFICIAL
SOURCE=http://salix.enialis.net/x86_64/slackware-current/extra/:OFFICIAL
SOURCE=http://salix.enialis.net/x86_64/current/:PREFERRED

After you make the changes, run

slapt-get -u

Upgrading packages

First upgrade spkg, glibc and make sure you install the new kmod package and openssl-solibs (it also has the old 0.9.8x openssl libraries included):

slapt-get -i spkg glibc kmod openssl-solibs

Then upgrade slapt-get itself (along with its dependencies):

slapt-get -i slapt-get curl cyrus-sasl gpgme libassuan libgpg-error libidn openldap-client openssl zlib

And then upgrade all other packages to their new versions:

slapt-get --upgrade

DO NOT use:

slapt-get --dist-upgrade

in any case. Although it might seem to be the best option for upgrading to a different version, it really isn't.

Upgrade your udev package, it's locked for upgrades in /etc/slapt-get/slapt-getrc so you have to ask for it explicitly:

slapt-get -i udev

After the upgrade you can also update the previously installed glibc-solibs package: slapt-get -i glibc-solibs

Obsolete packages

Some packages have been obsoleted and should be removed. Some have been replaced by new packages. You can do this automatically with:

slapt-get --remove-obsolete --remove

Careful, because this will also remove all personal packages that you might have installed, if any. It will also remove any packages that used to be part of the Slackware or Salix repos in 13.37, but are not anymore in current. And it's never a bad idea to have a look at the Slackware CHANGES_AND_HINTS.TXT file:

Packages that have been removed from Slackware according to the ChangeLog (use this list at your own risk):

hal
hal-info
wv2
jre
raptor (reinstall raptor2 afterwards)
jdk
module-init-tools
ntfsprogs
iwlwifi*
rt2860-firmware
rt2870-firmware
rt61-firmware
rt71w-firmware
radeon_ucode
scripts
xaw3d
xf86-video-radeonhd
xf86-video-sisusb
xf86-video-tseng
xf86-video-xgi

And this NOTE: After upgrading, the following obsolete KDE packages should be removed:

kdeaccessibility kdebase kdebase-runtime
kdebase-workspace kdebindings kdeedu
kdegraphics kdeutils koffice konq-plugins
kopete-cryptography polkit-kde-1 koffice-l10n-*

Upgrading the kernel

Run:

 ls /var/log/packages/kernel*

to see which kernel packages you have installed and do a slapt-get -i for each one of them.

If you have switched to the kernel-generic package instead of the default kernel-huge package, don't forget to recreate the initrd.gz file which will be needed for booting you upgraded system. If you're still using the default kernel-huge package, an initrd is not needed anyway and you needn't be concerned about it.

After upgrading the packages, don't forget to edit your /etc/lilo.conf file accordingly and run:

 lilo -v

to inform the bootloader about the kernel upgrade.

Configuration files

After doing all the upgrades, run:

dotnew

to accept or reject new configuration files. Make sure that you DO NOT replace your /etc/passwd, /etc/shadow or /etc/group files. If you do, you will lose all users/groups/passwords you have in your system. However, even if you do, you can get the old files back, they will be kept in the same locations, with an .orig suffix.

If you are starting your system in init 3 (console), instead of init 4 (graphics) and you start the GUI by running 'startx', you'd better refresh the xinitrc file in your home directory by running (while in init 3):

xwmconfig

and selecting your preferred Desktop Environment.