LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 559|回复: 1

请问已经用了很久的9.1而且美化好了,如何升级到10呀?

[复制链接]
发表于 2004-6-24 16:13:21 | 显示全部楼层 |阅读模式
请问已经用了很久的9.1而且美化好了,如何升级到10呀?
发表于 2004-6-24 16:25:54 | 显示全部楼层
Slackware 9.1 to 10.0 Upgrade HOWTO  <volkerdi@slackware.com>

This document explains how to upgrade from Slackware 9.1 to Slackware 10.0

-----------------------------------------------------------------------------


Before you begin, I would strongly recommend making a backup of your
system, or, if not the entire system, at least the /etc directory.  You
might find that you need to refer to a few things about the upgrade
process is complete. Back it up, or take your chances.

OK, now that everything is safely backed up, let's proceed. :-)

To do this, you'll need the Slackware 10.0 packages.  If these are on a CD,
create a new directory to mount the CD on so that it doesn't get in the
way during the upgrade:

mkdir /packages
mount /dev/cdrom /packages

The packages don't have to be on a CD-ROM, as an alternative you could
copy the slackware directory (the one with the various package
subdirectories in it, basically the "slackware" directory from the install
CD) to someplace like /root/slackware/.  The important thing is that you
know where the slackware packages directory is.  We'll use /root/slackware
in the following examples.


0.  Put your machine in single-user mode:
    telinit 1


1.  Upgrade your glibc shared libraries.  This is important, or things
    might go haywire during the first part of the upgrade:

    upgradepkg /root/slackware/a/glibc-solibs-*.tgz


2.  Upgrade your package utilities:

    upgradepkg /root/slackware/a/pkgtools-*.tgz


3.  Install sed.  You should already have this, but since it's used by
    the package utilities it is best to be sure:

    upgradepkg --install-new /root/slackware/a/sed-*.tgz


4.  Upgrade everything else (and install new packages):

    upgradepkg --install-new /root/slackware/*/*.tgz


5.  Make sure your system will boot.  If you use LILO, make sure the
    paths in /etc/lilo.conf point to a valid kernel and then type 'lilo'
    to reinstall LILO.  If you use a bootdisk, you'll need to use
    makebootdisk to make a new bootdisk using the kernel in /boot.


6.  Fix your config files.  Some of the config files in /etc are going to
    need your attention.  You'll find the new incoming config files on
    your system with the ".new" extension.  You may need to fill these in
    with information from your old config files and then move them over.

    Feel brave?  You can use this little script to install all of the
    .new config files in /etc.  If you've made any local changes you'll
    need to add them to the newly installed files.  Your old config files
    will be copied to *.bak.  Anyway, it might be an easier starting
    point.  Here it is:

  1.      #!/bin/sh
  2.      cd /etc
  3.      find . -name "*.new" | while read configfile ; do
  4.        if [ ! "$configfile" = "./rc.d/rc.inet1.conf.new" \
  5.          -a ! "$configfile" = "./group.new" \
  6.          -a ! "$configfile" = "./passwd.new" \
  7.          -a ! "$configfile" = "./shadow.new" ]; then
  8.          cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
  9.            $(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
  10.          mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)
  11.        fi
  12.      done
复制代码

    You'll probably also want to either remove your old
    /etc/X11/XF86Config or move it to /etc/X11/xorg.conf.  It's probably
    best to start with one of the new examples or xorgconfig, though, as
    there are a few minor config file changes (easily spotted by diffing
    the supplied sample config files, if you're interested).


7.  Return to multi-user mode:
    telinit 3


8.  Remove obsolete packages.

    If you go into /var/log/packages and take a look at the package list:

    ls -lt | less

    You may spot some old, obsolete, or discontinued packages.  If so,
    you can remove these using 'removepkg'.  Here's a command line to
    remove all the packages from Slackware 9.1 that are now obsolete:

    removepkg devfsd elflibs oggutils acme gal2 gnome-extra-themes \
     linc kde-i18n-af kde-i18n-eo kde-i18n-mk kde-i18n-mt \
     kde-i18n-nso kde-i18n-se kde-i18n-ss kde-i18n-th kde-i18n-ven \
     kde-i18n-vi kde-i18n-xh kde-i18n-zu koffice-i18n-ar \
     koffice-i18n-bs koffice-i18n-lt koffice-i18n-lv \
     koffice-i18n-uk db1 db2 libgr ttf-bitstream-vera xfree86 \
     xfree86-devel xfree86-docs xfree86-docs-html \
     xfree86-fonts-100dpi xfree86-fonts-cyrillic \
     xfree86-fonts-misc xfree86-fonts-scale xfree86-xnest \
     xfree86-xprt xfree86-xvfb


9.  Remove KDE language bloat.  By upgrading all packages using
    --install-new you've probably installed all of the KDE language
    translations from the KDEI series, which will use up about
    500MB.  If you need only US English, you may remove the KDE
    language packs like this:

    cd /var/log/packages
    removepkg kde-i18n* koffice-i18n*

    Even if you need one of these, it might be best to start by
    removing them all, and then go back and install the ones you
    need with installpkg.   



At this point you should be running Slackware 10.0.  :-)

I wish everyone good luck with this!

---
Patrick Volkerding
volkerdi@slackware.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表