Membuat Beberapa Repository Lokal di Satu Mesin
Revision as of 05:37, 21 December 2010 by Onnowpurbo (talk | contribs)
Kadang kala kita ingin membuat beberapa repository lokal di sebuah mesin. Misalnya untuk
- Ubuntu 9.10
- Ubuntu 10.04
Yang perlu dilakukan
- Instalasi Apache
- Mirror Repository misalnya
/var/data/repo-9.10 /var/data/repo-10.04
- Buat statik link, ada baiknya diletakan di /etc/rc.local
ln -s /var/data/repo-9.10 /var/www/ubuntu-9.10 ln -s /var/data/repo-10.04 /var/www/ubuntu-10.04
atau
mount --bind /var/data/repo-9.10 /var/www/ubuntu-9.10 mount --bind /var/data/repo-10.04 /var/www/ubuntu-10.04
Entry di /etc/apt/sources.list Client
## untuk ubuntu karmic [9.10 arch 32bit & 64bit] deb http://192.168.0.2/ubuntu-9.10 karmic main restricted universe multiverse deb http://192.168.0.2/ubuntu-9.10 karmic-updates main restricted universe multiverse deb http://192.168.0.2/ubuntu-9.10 karmic-security main restricted universe multiverse deb http://192.168.0.2/ubuntu-9.10 karmic-backports main multiverse restricted universe deb http://192.168.0.2/ubuntu-9.10 karmic-proposed main multiverse restricted universe
## untuk ubuntu lucid [10.04 arch 32bit & 64bit] deb http://192.168.0.2/ubuntu-10.04 lucid main restricted universe multiverse deb http://192.168.0.2/ubuntu-10.04 lucid-updates main restricted universe multiverse deb http://192.168.0.2/ubuntu-10.04 lucid-security main restricted universe multiverse deb http://192.168.0.2/ubuntu-10.04 lucid-backports main multiverse restricted universe deb http://192.168.0.2/ubuntu-10.04 lucid-proposed main multiverse restricted universe