Membuat ubuntu repository sendiri

Download iso DVD repo Ubuntu di ftp://kambing.ui.edu/pub/ubuntu-repository/7.04

atau backup dari DVD

# dd if=/media/cdrom of=/ubuntu-7.04-repository-i386-1_contrib.iso

mount iso di directori /home/ftp/, langsung ditambahkan di /etc/fstab

# mkdir -p /home/ftp/{repo1,repo2,repo3,repo4}

# vim /etc/fstab

# tambahkan baris berikut

/ubuntu-7.04-repository-i386-1_contrib.iso   /home/ftp/repo1    iso9660    ro,auto,loop=/dev/loop0    0    0

/ubuntu-7.04-repository-i386-2_contrib.iso    /home/ftp/repo2    iso9660    ro,auto,loop=/dev/loop1    0    0

/ubuntu-7.04-repository-i386-3_contrib.iso    /home/ftp/repo3    iso9660    ro,auto,loop=/dev/loop2    0    0

/ubuntu-7.04-repository-i386-4_contrib.iso    /home/ftp/repo4    iso9660    ro,auto,loop=/dev/loop3    0    0

# simpan

# mount /home/ftp/repo1

# mount /home/ftp/repo2

# mount /home/ftp/repo3

# mount /home/ftp/repo4

install ftp server

# apt-get install proftpd

# /etc/init.d/proftpd start

edit /etc/apt/sources.list tambahkan baris berikut/ ganti

# vim /etc/apt/sources.list

deb ftp://ip-address-komputer/repo1 feisty main restricted universe multiverse

deb ftp://ip-address-komputer/repo2 feisty universe

deb ftp://ip-address-komputer/repo3 feisty universe

deb ftp://ip-address-komputer/repo4 feisty universe multiverse

# simpan

update paket

# apt-get update

semoga membantu 🙂

Iklan
By iwansetiawan Posted in Linux

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s