Статус:
Offline
Реєстрація: 20.04.2006
Повідом.: 38654
Реєстрація: 20.04.2006
Повідом.: 38654
Кароче, ради прикола поробовал заюзать perldoc на скрипте apt-mirror (скрипт для создания локального репозитория Ubuntu, Посилання видалено), который я заточил под винду и который работает на виндовом же ActivePerl-e (Посилання видалено). Естессно, что perldoc идет вместе с ним.
В скрипте есть такой коммент:
Ввожу: perldoc apt-mirror
Получаю:
По-моему нихуя сложного.
В скрипте есть такой коммент:
=pod
=head1 NAME
apt-mirror - apt sources mirroring tool
=head1 SYNOPSIS
apt-mirror [configfile]
=head1 DESCRIPTION
A small and efficient tool that lets you mirror a part of or
the whole Debian GNU/Linux distribution or any other apt sources.
Main features:
* It uses a config similar to apts F<sources.list>
* It's fully pool comply
* It supports multithreaded downloading
* It supports multiple architectures at the same time
* It can automatically remove unneeded files
* It works well on overloaded channel to internet
* It never produces an inconsistent mirror including while mirroring
* It works on all POSIX complied systems with perl and wget
=head1 COMMENTS
apt-mirror uses F</etc/apt/mirror.list> as a configuration file.
By default it is tuned to official debian mirror in Finland. Change
it for your needs.
After you setup the configuration file you may run as root:
# su - apt-mirror -c apt-mirror
Or uncomment line in F</etc/cron.d/apt-mirror> to enable daily mirror upgrades.
=head1 FILES
F</etc/apt/mirror.list>
Main configuration file
F</etc/cron.d/apt-mirror>
Cron configuration template
F</var/spool/apt-mirror/mirror>
Mirror places here
F</var/spool/apt-mirror/skel>
Place for temporarily downloaded indexes
F</var/spool/apt-mirror/var>
Log files placed here. URLs and MD5 summs also here.
=head1 KNOWN BUGS
Do not specify default http port (80) explicitly. (i.e. deb Посилання видалено sid ...)
=head1 AUTHOR
Dmitry N. Hramtsov E<lt>hdn*nsu.ruE<gt>
=cut
Ввожу: perldoc apt-mirror
Получаю:
NAME
apt-mirror - apt sources mirroring tool
SYNOPSIS
apt-mirror [configfile]
DESCRIPTION
A small and efficient tool that lets you mirror a part of or the whole
Debian GNU/Linux distribution or any other apt sources.
Main features: * It uses a config similar to apts sources.list * It's
fully pool comply * It supports multithreaded downloading * It supports
multiple architectures at the same time * It can automatically remove
unneeded files * It works well on overloaded channel to internet * It
never produces an inconsistent mirror including while mirroring * It
works on all POSIX complied systems with perl and wget
COMMENTS
apt-mirror uses /etc/apt/mirror.list as a configuration file. By default
it is tuned to official debian mirror in Finland. Change it for your
needs.
After you setup the configuration file you may run as root:
# su - apt-mirror -c apt-mirror
Or uncomment line in /etc/cron.d/apt-mirror to enable daily mirror
upgrades.
FILES
/etc/apt/mirror.list Main configuration file
/etc/cron.d/apt-mirror Cron configuration template
/var/spool/apt-mirror/mirror Mirror places here
/var/spool/apt-mirror/skel Place for temporarily downloaded indexes
/var/spool/apt-mirror/var Log files placed here. URLs and MD5 summs also
here.
KNOWN BUGS
Do not specify default http port (80) explicitly. (i.e. deb
Посилання видалено sid ...)
AUTHOR
Dmitry N. Hramtsov <hdn*nsu.ru>
По-моему нихуя сложного.