Membuat Repository Ubuntu Lokal dari hasil Download Repository

From OnnoWiki
Revision as of 07:58, 21 May 2009 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Bagi anda yang cukup rajin mendownload keseluruhan repository Ubuntu, misalnya dari

http://opensource.telkomspeedy.com/ubuntu/

Biasanya anda akan mempunyai struktur folder sbb:

dist
  namadistro
  namadistro-security
  namadistro-updates
  namadistro-backports
pool
  main
  multiverse
  restricted
  universe
project
  trace


Sebagai contoh disini akan digunakan Repository 9.04. Misalkan seluruh repository dengan struktur file di atas di letakan di folder

/home/media/repo-9.04

Maka isi file /etc/apt/sources.list adalah

deb file:///home/media/repo-9.04/ jaunty main multiverse restricted universe
deb file:///home/media/repo-9.04/ jaunty-updates main multiverse restricted universe
deb file:///home/media/repo-9.04/ jaunty-security main multiverse restricted universe
deb file:///home/media/repo-9.04/ jaunty-backports main multiverse restricted universe

Agar repository bisa digunakan lakukan

# apt-get update


Jika anda ingin supaya bisa di akses oleh PC lain di jaringan anda perlu menginstalasi FTP Server

# apt-get install vsftpd
# mkdir /home/ftp
# chown -Rf root.root /home/ftp
# /etc/init.d/vsftpd restart
# mkdir /home/ftp/pub
# chown -Rf ftp.nogroup /home/ftp/pub

Buatlah symbolic link di folder ftp


# chown -Rf nobody.nogroup /home/media/repo-9.04
# chmod -Rf 777 /home/media/repo-9.04
# mkdir /home/ftp/pub/repo-9.04
# mount --bind /home/media/repo-9.04 /home/ftp/pub/repo-9.04


Isi /etc/apt/sources.list adalah

deb ftp://192.168.0.2/pub/repo-9.04/ jaunty main multiverse restricted universe
deb ftp://192.168.0.2/pub/repo-9.04/ jaunty-updates main multiverse restricted universe
deb ftp://192.168.0.2/pub/repo-9.04/ jaunty-security main multiverse restricted universe
deb ftp://192.168.0.2/pub/repo-9.04/ jaunty-backports main multiverse restricted universe


Pranala Menarik