-- Install software
spencersr@shihan:~/temp$ sudo apt-get install debpartial-mirror
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
debpartial-mirror
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 12.1kB of archives.
After unpacking 119kB of additional disk space will be used.
Get:1 http://209.112.194.33 breezy/universe debpartial-mirror
0.2.10ubuntu1 [12.1kB]
Fetched 12.1kB in 0s (13.5kB/s)
Preconfiguring packages ...
Selecting previously deselected package debpartial-mirror.
(Reading database ... 92248 files and directories currently installed.)
Unpacking debpartial-mirror (from
.../debpartial-mirror_0.2.10ubuntu1_all.deb) ...
Setting up debpartial-mirror (0.2.10ubuntu1) ...
--- Edit config
# debpartial-mirror configuration file.
#
# Author: Otavio Salvador <otavio@debian.org>
# $Id: debpartial-mirror.conf 88 2004-06-16 15:34:56Z otavio $
[mirror]
# mirror origin server
server=http://ftp.us.debian.org/debian/
# mirror destiny directory
local_directory=/home/spencersr/temp/
# extra files list to be downloaded (this accepts regular expressions)
#files=doc/(.*.txt)
# should I get the suggeted packages?
get_suggests=true
# should I get the recomended packages?
get_recomends=true
# should I get the provided packages?
get_provides=true
# witch archs should I download?
archs=i386
[sarge]
# If using debian-cd tasks, you need filter without any packages. See bellow
#filter=main:-:-
#include-task=/usr/share/debian-cd/tasks/debian-installer
#exclude-task=/usr/share/debian-cd/tasks/exclude
# Another filter example
filter=main:base:* main:*:required main:*:important main/debian-installer:*:*
#[unstable]
#packages=main:apt-utils
#exclude=main:lilo
#filter=main/debian-installer:*:*
--- Run (even via cron)
spencersr@shihan:~/temp$ debpartial-mirror
debpartial-mirror 0.2.10ubuntu1 - Partial mirroring tool for Debian - Thu, 6 Jan 2005 23:00:30 +0100
(c) 2004 Otavio Salvador <otavio@debian.org>, Henrique Vilela <jacare@ucpel.tche.br>
This program is free software and was released under the terms of the GNU General Public License
Making directory /home/spencersr/temp/dists/sarge...
Getting http://ftp.us.debian.org/debian/dists/sarge/Release
Done Getting http://ftp.us.debian.org/debian/dists/sarge/Release
Getting http://ftp.us.debian.org/debian/dists/sarge/Release.gpg
Done Getting http://ftp.us.debian.org/debian/dists/sarge/Release.gpg
Making directory /home/spencersr/temp/dists/sarge/main/binary-i386...
Getting http://ftp.us.debian.org/debian/dists/sarge/main/binary-i386/Release
Done Getting http://ftp.us.debian.org/debian/dists/sarge/main/binary-i386/Release
Getting http://ftp.us.debian.org/debian/dists/sarge/Contents-i386.gz
Done Getting http://ftp.us.debian.org/debian/dists/sarge/Contents-i386.gz
Getting http://ftp.us.debian.org/debian/dists/sarge/main/binary-i386/Packages.gz
Done Getting http://ftp.us.debian.org/debian/dists/sarge/main/binary-i386/Packages.gz
Uncompressing /home/spencersr/temp/dists/sarge/main/binary-i386/Packages.gz
Making directory /home/spencersr/temp/dists/sarge/main/debian-installer/binary-i386...
Getting http://ftp.us.debian.org/debian/dists/sarge/main/debian-installer/binary-i386/Release
Done Getting http://ftp.us.debian.org/debian/dists/sarge/main/debian-installer/binary-i386/Release
Match: /home/spencersr/temp/dists/sarge/Contents-i386.gz
Getting http://ftp.us.debian.org/debian/dists/sarge/main/debian-installer/binary-i386/Packages.gz
Done Getting http://ftp.us.debian.org/debian/dists/sarge/main/debian-installer/binary-i386/Packages.gz
Uncompressing /home/spencersr/temp/dists/sarge/main/debian-installer/binary-i386/Packages.gz
Processing remote packages ...
Processing local packages ...
1 of 1158
Making directory /home/spencersr/temp/pool/main/g/gcc-3.4...
Getting http://ftp.us.debian.org/debian/pool/main/g/gcc-3.4/libgcc1_3.4.3-13_i386.deb
Done Getting http://ftp.us.debian.org/debian/pool/main/g/gcc-3.4/libgcc1_3.4.3-13_i386.deb
2 of 1158
Making directory /home/spencersr/temp/pool/main/i/ispell-czech...
Getting http://ftp.us.debian.org/debian/pool/main/i/ispell-czech/iczech_20040229-1_i386.deb
... 64%
---
ok well that was easy..