Am 10.04.2013 11:38, schrieb Timothy Murphy:
Michael Cronenworth wrote:
> A few of my machines (2 and 4 cores, SSDs) assemble delta-rpms at around
> 1 to 2 MB/sec. I have a 100MBit internet connection, which can peak
> around 12 MB/sec. I'd rather get my packages at 12 MB/sec. :)
Am I alone in feeling a tiny environmental or ethical concern
to minimise my contribution to network traffic?
no, you are not
i have one machine with all packages on any machine used installed
this machine has 100Mbit WAN, is downloading the updates without
presto and after that move the files to a internal repo where any
other machine is only using this LAN repo
so i get my updates up to 12 MB/sec, save time and save multiple
traffic in context of the update-mirrors inhouse
____________________________________________
[root@buildserver:~]$ cat /buildserver/repo-cache.sh
#!/usr/bin/bash
basearch=`uname -i`
releasever=`rpm -q --qf "%{version}\n" fedora-release`
for g in `ls -1b /var/cache/yum`
do
if [ -d /var/cache/yum/$g/packages ]
then
echo "/var/cache/yum/$g/packages/ > /repo/cache/fc$releasever/"
mv --verbose /var/cache/yum/$g/packages/*.rpm /repo/cache/fc$releasever/ 2>
/dev/null
fi
done
sudo chown -R builduser:builduser /repo/cache/fc$releasever/
sudo chmod -R 755 /repo/cache/fc$releasever/
____________________________________________
[root@buildserver:~]$ cat /buildserver/repo-create.sh
#!/usr/bin/bash
basearch=`uname -i`
releasever=`rpm -q --qf "%{version}\n" fedora-release`
sudo createrepo -d /repo/cache/fc$releasever/
sudo repoview /repo/cache/fc$releasever/