Another post dedicated to useful utilities. from Debian =)) At this time, I would like to recall the apt-mirror program, which doesn’t allow much, and create my own Debian repository mirrors with daily updates.
Why this may be needed, I do not even need to say, since everyone knows that in the local network of an enterprise or some village / house it is easier to make a common mirror with a repository slice than to load the Internet channel every time an individual uses his own The Debian GNU / Linux workplace will want to upgrade to a more recent version.
')
So, you must first install the program by running
sudo apt-get install apt-mirror
After this action, call
dpkg-query -L apt-mirror
you can see the lines
...
/etc/apt/mirror.list
...
/etc/cron.d/apt-mirror
The first file in this list is the configuration file, the second is the file. which will run the program daily for krone. All we need to start mirroring is to modify the /etc/apt/mirror.list file accordingly. Let's do it!
sudo nano /etc/apt/mirror.list
By the very minimum it is enough to specify the following parameters:
set base_path /home/mirror
set _tilde 0
#source
deb-src ftp.iinet.net.au/debian/debian lenny main contrib non-free
deb-src ftp.iinet.net.au/debian/debian sid main contrib non-free
#binary
deb ftp.iinet.net.au/debian/debian lenny main contrib non-free
deb ftp.iinet.net.au/debian/debian sid main contrib non-free
Save the config and execute the command
apt-mirror
Well, then - just wait until the entire repository is downloaded and mirrored, which can take quite some time =)) Use for health!