Difference between revisions of "Membuat Beberapa Repository Lokal di Satu Mesin"

From OnnoWiki
Jump to navigation Jump to search
(New page: Kadang kala kita ingin membuat beberapa repository lokal di sebuah mesin. Misalnya untuk * Ubuntu 9.10 * Ubuntu 10.04 Yang perlu dilakukan * Instalasi Apache * [[Membuat Repository ...)
 
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
  ln -s /var/data/repo-9.10 /var/www/ubuntu-9.10
 
  ln -s /var/data/repo-9.10 /var/www/ubuntu-9.10
 
  ln -s /var/data/repo-10.04 /var/www/ubuntu-10.04
 
  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==
 
==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
  
  
Line 25: Line 42:
  
 
* [[Linux Howto]]
 
* [[Linux Howto]]
 +
 +
[[Category: Linux]]
 +
[[Category: Repository]]

Latest revision as of 05:37, 21 December 2010

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

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


Pranala Menarik