Package Details: pkgdistcache 0.3.2-1

Git Clone URL: https://aur.archlinux.org/pkgdistcache.git (read-only)
Package Base: pkgdistcache
Description: A distributed local-network cache for pacman packages
Upstream URL: http://venator.ath.cx/dw/doku.php?id=linux:pkgdistcache
Licenses: GPL
Submitter: None
Maintainer: ejona86
Last Packager: ejona86
Votes: 12
Popularity: 0.000992
First Submitted: 2009-08-18 21:37
Last Updated: 2016-12-03 23:32

Required by (0)

Sources (4)

  • pkgdistcache-client
  • pkgdistcache-daemon
  • pkgdistcache.conf
  • pkgdistcached.service

Latest Comments

fahq613 commented on 2016-01-10 07:54

Fails when I try to start the server service This is it's status output:

File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.systemd1.LoadFailed: Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory.

ejona86 commented on 2012-08-16 04:03

For systemd users, pkgdistcached.service:

[Unit]
Description=Distributed pacman package cache

[Service]
ExecStart=/usr/bin/pkgdistcache-daemon -F

[Install]
WantedBy=multi-user.target

fphillips commented on 2012-01-27 21:49

To fix the FAIL at rc.d stop, update the PID pgrep line in the rc.d file to python2.

fphillips commented on 2011-04-11 19:04

The client and daemon need to be updated to point to python2 instead of simply python now that python3 is the default.

ejona86 commented on 2010-12-28 14:34

You shouldn't have to modify your mirrorlist. I don't know exactly what problem you are experiencing so I will just explain some pieces that seem relavant.

Once you have set XferCommand, you should notice pacman connecting to the other computers on your network that have pkgdistcache-daemon running to download packages (not package databases). If the other computers don't have the package already downloaded you would see several 404s. If no other pkgdistcache-daemon running computers are on the network, then you should still see a visual difference during downloading in pacman, but no speedup and obviously no attempting to connect to other computers on the network.

As a note, if you are testing frequently with a lot of different setups, there is cache file of the current peers on the network used by pkgdistcache-client at /tmp/pkgdistcache.*. You may wish to remove it between test cases so that it is easier to figure out what it going on.

Anonymous comment on 2010-12-23 19:55

Thx for clarification.

However its still using the ftp not the internal network. Do i need to change some mirrorlist ranking?

ejona86 commented on 2010-12-23 16:42

You don't run the client directly. Pacman uses it to download. This documentation is printed when installing:

==> Quick start:
1) start avahi-daemon
2) start the pkgdistcache daemon via
/etc/rc.d/pkgdistcached start
(optionally add pkgdistcached to the DAEMONS array
in /etc/rc.conf)
3) edit /etc/pacman.conf, set the option:
XferCommand = /usr/bin/pkgdistcache-client %u %o

Anonymous comment on 2010-12-23 13:23

Still doesnt work for me after applying those 4 lines mentioned below.

f@myhost ~]$ pkgdistcache-client
Traceback (most recent call last):
File "/usr/bin/pkgdistcache-client", line 175, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/pkgdistcache-client", line 119, in main
pkg = os.path.basename(argv[1]) # argv[1] = %u passed by pacman
IndexError: list index out of range

ejona86 commented on 2010-10-22 02:00

For now, I edited PKGBUILD and added these lines to build() before the install lines:

sed 's;#!/usr/bin/python;#!/usr/bin/python2;' "${srcdir}/pkgdistcache-client" > "${srcdir}/tmp"
mv "${srcdir}/tmp" "${srcdir}/pkgdistcache-client"
sed 's;#!/usr/bin/python;#!/usr/bin/python2;' "${srcdir}/pkgdistcache-daemon" > "${srcdir}/tmp"
mv "${srcdir}/tmp" "${srcdir}/pkgdistcache-daemon"

ejona86 commented on 2010-10-22 00:58

The client and daemon need to be updated to point to python2 instead of simply python now that python3 is the default.