Membuat Beberapa Repository Lokal di Satu Mesin

From SpeedyWiki

Jump to: navigation, search

Kadang kala kita ingin membuat beberapa repository lokal di sebuah mesin. Misalnya untuk

  • Ubuntu 9.10
  • Ubuntu 10.04

Yang perlu dilakukan

/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

[edit] 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


[edit] Pranala Menarik

Personal tools