Membuat Repository Ubuntu Lokal dari hasil Download Repository
Jump to navigation
Jump to search
Bagi anda yang cukup rajin mendownload keseluruhan repository Ubuntu yang umumnya besarnya lebih dari 20Gbyte, 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 Ubuntu 9.04 dan 9.10
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 (untuk 9.04)
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
dan (untuk 9.10)
deb file:///home/media/repo-9.10/ karmic main multiverse restricted universe deb file:///home/media/repo-9.10/ karmic-updates main multiverse restricted universe deb file:///home/media/repo-9.10/ karmic-security main multiverse restricted universe deb file:///home/media/repo-9.10/ karmic-backports main multiverse restricted universe deb file:///home/media/repo-9.10/ karmic-proposed main multiverse restricted universe
Agar repository bisa digunakan / di ambil dari jaringan 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 (untuk 9.04)
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
untuk 9.10
chown -Rf nobody.nogroup /home/media/repo-9.10 chmod -Rf 777 /home/media/repo-9.10 mkdir /home/ftp/pub/repo-9.10 mount --bind /home/media/repo-9.10 /home/ftp/pub/repo-9.10
Isi /etc/apt/sources.list adalah (untuk 9.04)
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
untuk 9.10
deb ftp://192.168.0.2/pub/repo-9.10/ karmic main multiverse restricted universe deb ftp://192.168.0.2/pub/repo-9.10/ karmic-updates main multiverse restricted universe deb ftp://192.168.0.2/pub/repo-9.10/ karmic-security main multiverse restricted universe deb ftp://192.168.0.2/pub/repo-9.10/ karmic-backports main multiverse restricted universe deb ftp://192.168.0.2/pub/repo-9.10/ karmic-proposed main multiverse restricted universe
Membuat Repository di Web
- Pertama-tama Instalasi Apache
- Buat link statik antara download repository ke Web (untuk 9.04)
mkdir /var/www/ubuntu mount --bind /home/media/repo-9.04 /var/www/ubuntu
(untuk 9.10)
mkdir /var/www/ubuntu mount --bind /home/media/repo-9.10 /var/www/ubuntu
Konfigurasi di sisi client kurang lebih
deb http://192.168.0.254/ubuntu/ karmic main multiverse restricted universe deb http://192.168.0.254/ubuntu/ karmic-updates main multiverse restricted universe deb http://192.168.0.254/ubuntu/ karmic-security main multiverse restricted universe deb http://192.168.0.254/ubuntu/ karmic-backports main multiverse restricted universe deb http://192.168.0.254/ubuntu/ karmic-proposed main multiverse restricted universe