使用apt-mirror搭建本地源
- apt-get原理,目录
- apt-mirror建立同步源
- reporepo手动创建源
安装apt-mirror
apt-get install apt-mirror
配置
cat /etc/apt/mirror.list
set base_path /var/spool/apt-mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set defaultarch amd64
set nthreads 20
set _tilde 0
deb xxxx trusty main restricted universe multiverse
clean xxx
开始同步
apt-mirror