Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:slack_upgrade [2017-01-04 15:13] becki |
becki:linux:slack_upgrade [2018-09-15 08:33] (aktuell) becki [Keep your system up to date] |
||
---|---|---|---|
Zeile 9: | Zeile 9: | ||
slackpkg check-updates | slackpkg check-updates | ||
- | Make sure you don't have any old ''.new'' files somewhere in ''/etc'': | + | Make sure you don't have any old ''.new'' files somewhere: |
- | find /etc -name '*.new' # Output must be empty! | + | find /etc -name '*.new' # Output must be empty! |
+ | find /usr -name '*.new' # Output must be empty, except titletoc.new & titletoc.new in /usr/share/texmf/... | ||
+ | find /var -name '*.new' # Output must be empty! | ||
Make a (becki)backup of your whole system | Make a (becki)backup of your whole system | ||
Zeile 39: | Zeile 41: | ||
[0-9]+_SBo | [0-9]+_SBo | ||
- | If the kernel is to be updated: Manually download the //new// kernel and its modules from ''a/'' series. Note that in the 64-bit versions of Slack, SMP is the default, so there are no explicit SMP-packages of kernel or modules. Install with ''installpkg'' (not with ''upgradepkg''!) | + | If the kernel is to be updated: Manually download the //new// kernel and its modules from ''patches/packages/linux-<new-kernel-version>''. Note that in the 64-bit versions of Slack, SMP is the default, so there are no explicit SMP-packages of kernel or modules. Install with ''installpkg'' (not with ''upgradepkg''!) |
Sync your local mirror for the multilib packages if you use them | Sync your local mirror for the multilib packages if you use them | ||
Zeile 74: | Zeile 76: | ||
If the kernel was updated: | If the kernel was updated: | ||
- An [[slack_initrd|initrd]] must be created if the generic kernel is used | - An [[slack_initrd|initrd]] must be created if the generic kernel is used | ||
- | - Lilo must be reinstalled | + | - (e)Lilo must be reinstalled |
+ | - If the new kernel boots, the packages conaining the old kernel and its modules can be removed. | ||
Do some cleanup: | Do some cleanup: | ||
Zeile 82: | Zeile 85: | ||
- As of 14.2 set mplayer to use [[sound#select_output_driver|pulse]] as output device | - As of 14.2 set mplayer to use [[sound#select_output_driver|pulse]] as output device | ||
- As of Slack 14.2 the symlink ''/etc/rc.modules'' seems not to be used any more. It still points to old rc.modules-<oldkernel>. => Rename it! | - As of Slack 14.2 the symlink ''/etc/rc.modules'' seems not to be used any more. It still points to old rc.modules-<oldkernel>. => Rename it! | ||
+ | - Start php in the console ''php -v'' and make sure no libs are missing. (On a headless server without X11 it may be necesssary to install libXpm) | ||
Consider creating bootstick of //old// kernel or, on in case of a vserver log into VCP, start VNC console and reboot from there, to see boot messages | Consider creating bootstick of //old// kernel or, on in case of a vserver log into VCP, start VNC console and reboot from there, to see boot messages | ||
Zeile 108: | Zeile 112: | ||
After slackpkg has installed the new packages you will be asked how to treat the new config files. Select the first option, i.e. old config files are preserved and new config files get the extension ''.new''. | After slackpkg has installed the new packages you will be asked how to treat the new config files. Select the first option, i.e. old config files are preserved and new config files get the extension ''.new''. | ||
+ | |||
+ | Search in /var/log/scripts with ''/var/log/scripts$ grep -h 'config [^e].*\.new' * | sort'' has shown, that in /usr and /var .new files are created as well. ''sbMergeEtcConfig'' is updated accordingly. | ||
For everey new config file, it is most convenient to do an automated ''mv'' or ''merge'' with the script ''sbMergeEtcConfig'' FIXME | For everey new config file, it is most convenient to do an automated ''mv'' or ''merge'' with the script ''sbMergeEtcConfig'' FIXME |