id.archive.ubuntu.com
1. apt-get install debmirror
2. arch=i386
3. arch=amd64
4. First, Install Apache
5. Buat link statik antara download repository ke Web. Misalkan untuk repo-13.04
6. # mkdir /var/www/ubuntu
# mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu
# mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu
# mkdir /var/www/ubuntu-9.10
# mkdir /var/www/ubuntu-10.04
# mkdir /var/www/ubuntu-10.10
# mkdir /var/www/ubuntu-11.04
# mkdir /var/www/ubuntu-11.10
# mkdir /var/www/ubuntu-12.04
# mkdir /var/www/ubuntu-12.10
# mkdir /var/www/ubuntu-13.04
# mkdir /var/www/ubuntu-10.04
# mkdir /var/www/ubuntu-10.10
# mkdir /var/www/ubuntu-11.04
# mkdir /var/www/ubuntu-11.10
# mkdir /var/www/ubuntu-12.04
# mkdir /var/www/ubuntu-12.10
# mkdir /var/www/ubuntu-13.04
# mount --bind /var/data/repository/repo-9.10 /var/www/ubuntu-9.10
# mount --bind /var/data/repository/repo-10.04 /var/www/ubuntu-10.04
# mount --bind /var/data/repository/repo-10.10 /var/www/ubuntu-10.10
# mount --bind /var/data/repository/repo-11.04 /var/www/ubuntu-11.04
# mount --bind /var/data/repository/repo-11.10 /var/www/ubuntu-11.10
# mount --bind /var/data/repository/repo-12.04 /var/www/ubuntu-12.04
# mount --bind /var/data/repository/repo-12.10 /var/www/ubuntu-12.10
# mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu-13.04
# mount --bind /var/data/repository/repo-10.04 /var/www/ubuntu-10.04
# mount --bind /var/data/repository/repo-10.10 /var/www/ubuntu-10.10
# mount --bind /var/data/repository/repo-11.04 /var/www/ubuntu-11.04
# mount --bind /var/data/repository/repo-11.10 /var/www/ubuntu-11.10
# mount --bind /var/data/repository/repo-12.04 /var/www/ubuntu-12.04
# mount --bind /var/data/repository/repo-12.10 /var/www/ubuntu-12.10
# mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu-13.04
# crontab -e
0 22 * * * /usr/local/bin/mirrorbuild.sh
0 22 * * * /usr/local/bin/mirrorbuild.sh
# /etc/init.d/cron restart
vi /etc/apt/sources.list.untuk-var-data-repo
Ubuntu 9.10
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-9.10/ karmic main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-updates main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-security main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-backports main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-updates main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-security main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-backports main multiverse restricted universe
deb file:///var/data/repository/repo-9.10/ karmic-proposed main multiverse restricted universe
Ubuntu 10.4
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-10.4/ lucid main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-updates main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-security main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-backports main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-updates main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-security main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-backports main multiverse restricted universe
deb file:///var/data/repository/repo-10.4/ lucid-proposed main multiverse restricted universe
Ubuntu 10.10
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-10.10/ maverick main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-updates main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-security main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-backports main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-updates main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-security main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-backports main multiverse restricted universe
deb file:///var/data/repository/repo-10.10/ maverick-proposed main multiverse restricted universe
Ubuntu 11.04
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-11.04/ natty main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-backports main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-security main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-updates main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-backports main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-security main multiverse restricted universe
deb file:///var/data/repository/repo-11.04/ natty-updates main multiverse restricted universe
Ubuntu 11.10
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-11.10/ oneiric main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-backports main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-security main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-updates main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-backports main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-security main multiverse restricted universe
deb file:///var/data/repository/repo-11.10/ oneiric-updates main multiverse restricted universe
Ubuntu 12.04
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-12.04/ precise main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-backports main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-security main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-updates main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-backports main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-security main multiverse restricted universe
deb file:///var/data/repository/repo-12.04/ precise-updates main multiverse restricted universe
Ubuntu 12.10
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-12.10/ quantal main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-backports main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-security main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-updates main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-backports main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-security main multiverse restricted universe
deb file:///var/data/repository/repo-12.10/ quantal-updates main multiverse restricted universe
Ubuntu 13.04
-----------------------------------------------------------------------------------------------------------------
deb file:///var/data/repository/repo-13.04/ raring main restricted universe multiverse
deb file:///var/data/repository/repo-13.04/ raring-backports main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-security main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-updates main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring main restricted universe multiverse
deb file:///var/data/repository/repo-13.04/ raring-backports main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-proposed main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-security main multiverse restricted universe
deb file:///var/data/repository/repo-13.04/ raring-updates main multiverse restricted universe
referensi : https://help.ubuntu.com/community/Repositories/CommandLine
EmoticonEmoticon