HOWTO - How To Update Your System with DVD or CD disk(s)

From WikiDoc

Contents

Preface

From time to time there is an question on forum: is there possible to update the system by packages form installation CDs (DVD) ?

This article is a try to answer.

The idea is simple: we make a local repo from DVD and use updateos (or KatePKG) as usually. In case of CDs we should make more repos - one for each CD - but the general idea is the same.

What makes repository in KateOS

Repository is simple a folder containing packages files (*.tgz), checksum files (*.md5) and one file named update.list. The update.list file contains a list of packages (stored in repo) with date of build for each package.

On DVD disk we have already packages *.tgz - there is a lack of the rest of files. Naturally we can't write it down to the DVD and copying it all to HDD is a poor idea. But we can use symbolic links.

How to do this

  • On the beginning we make a folder that will be our local repo. Let it be /home/user/DVD_repo. (user is a user home folder).
  • We should know where the DVD is mounted - suppose that this is /mnt/cdrom folder.
  • Now we make as follows:
cd /home/user/DVD_repo
find /mnt/cdrom/ -name "*.tgz" -exec ln -s {} . \;
makerepo .
  • First command move us to the folder where we make repo.
  • Second makes the symlinks to files *.tgz on DVD - by dink of this we shouldn't copy this files to HDD.
  • Third makes the repo - calculates md5 sums and makes update.list file.

The last command may take quite a long time.

The next step is to set aside the file /etc/updateservers and make new one with only one record: file:///home/user/DVD_repo.

It's may look like this:

su
mv /etc/updateservers /etc/updateservers.org
echo "file:///home/user/DVD_repo" > updateservers

Now we are ready to update our system by updateos or KatePKG.

  • After updateing we restore original file /etc/updateservers (as root):
mv /etc/updateservers.org /etc/updateservers

Notes

  • All process may be more time-consuming than installation from the beginning. During an installation there is no need to check and remove previous versions of packages.
  • Since KateOS 3.6 there will be a ready-made repo folder on each CD and DVD so there will be no need to make it what is time-consuming process.
  • This method can be used to install GNOME and KDE from extensions CD (or mounted CD images).