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
Both comments and pings are currently closed.