Mailinglist Archive: opensuse (1318 mails)

< Previous Next >
Re: [opensuse] Fetching updates once for two boxes
  • From: Dave Plater <dave.plater@xxxxxxxxxxx>
  • Date: Sat, 01 Nov 2008 09:18:00 +0200
  • Message-id: <490C02A8.5090303@xxxxxxxxxxx>
Carlos E. R. wrote:


On Friday, 2008-10-31 at 14:10 +0200, Dave Plater wrote:

Libzypp (yast and zypper) can keep packages in /var/cache/zypp/packages/
in a directory that matches the repository the rpms were downloaded
from. For example if the file /etc/zypp/repos.d/packman.repo was the
repository description file for
http://ftp.skynet.be/pub/packman/suse/11.0/ and the section in the file
keeppackages was set to keeppackages=1 then the directory
/var/cache/zypp/packages/packman/i586 wil contain all rpms that libzypp
downloads from http://ftp.skynet.be/pub/packman/suse/11.0/i586/ . These
packages can be moved to another directory and that directory turned
into a local repository with the createrepo command.
zypper has a -k option used with zypper ar to add repos with
keeppackages set to 1

Ahhhh! That's it.

And... if i manually copy the files from
/var/cache/zypp/packages/packman/i586 from one computer to another,
will those be picked locally instead of downloaded?

A trick we used time ago was to publish that directory rw via nfs, and
use it on all the computers, but i don't know how willthat work with
libzyp :-?

-- Cheers,
Carlos E. R.
You can specify where the cache directory is in /etc/zypp/zypp.conf but
I don't think the reuse cached files was working properly in 11.0. In
11.1 libzypp checks if the file is in the cache already and doesn't
download it again, with this feature you could specify a common cache on
a server for all machines and as long as you don't do simultaneous
updates the packages will be reused.
Regards
Dave P

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups