Home Home > 2008 > 10 > 06
Sign up | Login

Archive for October 6th, 2008

Parralel processing in zypper

October 6th, 2008 by

I have been on leave for a couple of days and today when I booted my laptop the openSUSE updater notified me of 4 security updates. While I was watching zypper updating the system (I prefer the command line client) I wondered if it would be possible for zypper to download and install patches/programs/etc asynchronously.  To explain better: instead of downloading a patch and then installing it, why can’t zypper download the patch and then start a process/tread to install it while it immediately starts to download the next file ? I have no knowledge of the internals of zypper or yast, so I don’t know it it even feasible, but it would decrease the time needed to patch the system.

zypper best feature

October 6th, 2008 by

Im impressed how many users don’t know new zypper features.

Users asks for ability to cache downloaded package with tracked dependencies. Somebody recommends use smart, somebody setup squid between ISP and home pc.

None of that methods are valid anymore.
Now zypper have caching feature. Ok, let me explain how to enable it.

First of all we need to determine for which repo we want to enable caching.

k0da@laptop:~> zypper sl
# | Alias                 | Name                  | Enabled | Refresh
--+-----------------------+-----------------------+---------+--------
1 | debug                 | debug                 | Yes     | No
2 | repo-non-oss          | openSUSE-11.0-Non-Oss | Yes     | No
3 | home:Eri_zaq          | home:Eri_zaq          | Yes     | Yes
4 | openSUSE-11.0-Updates | Updates for 11.0      | Yes     | Yes
5 | OBS                   | OBS                   | Yes     | Yes
6 | Packman               | Packman               | Yes     | Yes
7 | repo-oss              | openSUSE-11.0-Oss     | Yes     | No

In this example output we can get repo # or its name.

Now we are ready to enable cache

sudo zypper mr -k <repo name>| #

Thats all. Now install some packages from repo.

All cached packages now stored in cache dir (described in /etc/zypp/zypp.conf).

By default it stored in /var/cache/zypp

Next really wanted feature we are waiting for is resume download package, if internet connection lost 😉