Sejak awal menggunakan Ubuntu, saat itu Ubuntu 6.06, saya mulai mengenal dan mengerti konsep repository secara praktis. Repository saya umpamakan sebagai gudang penyimpanan. Apa yang disimpan ? Tentu saja berbagai software yang dapat digunakan dalam Ubuntu, termasuk update-annya. Dimanakah letak repository ini ? Tentu saja pada suatu server yang saya pun tidak tahu persis dimana letaknya, bisa di dalam atau di luar negeri.
Daftar repository yang dapat digunakan oleh Ubuntu kita terletak pada file /etc/apt/sources.list. Berikut ini adalah contoh isi file tersebut :
#
# deb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-1 (20070415)]/ feisty main restricteddeb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-2 (20070415)]/ feisty main restricted
deb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-1 (20070415)]/ feisty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiversedeb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
Bagian-bagian yang diawali oleh tanda ‘#’ adalah komentar yang memberikan keterangan mengenai repository yang bersangkutan, yang terletak dibawahnya.
Pada masing-masing repository, terdapat suatu daftar software yang dimiliki. Jadi file /etc/apt/sources.list hanya memuat lokasi saja, tidak memberitahukan software yang tersimpan di dalamnya. Agar Ubuntu yang kita miliki dapat mengetahui daftar software pada suatu repository, gunakan perintah berikut :
sudo apt-get update
Bila koneksi internet yang dimiliki cepat, proses update daftar software ini mungkin tidak terasa. Sebaliknya, jika koneksi internet lambat, proses ini cukup menjengkelkan. Perlu diingat, sampai tahap ini, kita baru meng-update daftar software belum men-download software-nya sendiri, yang notabene jauh lebih besar ukurannya.
Mengapa proses ini bisa berlangsung lama ? Salah satu faktornya adalah letak repository server. Ingat ! Ini hanya salah satu faktor. Untuk mengatasi hal ini, kita bisa mengganti daftar repository dengan repository yang terdapat di server ‘lokal’. Server lokal yang biasa saya gunakan adalah kambing.vlsm.org. Sekarang lihat isi file /etc/apt/sources.list milik saya :
## REPOSITORY UTAMA
deb http://kambing.ui.edu/ubuntu feisty main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty main restricted universe multiverse## MAJOR BUG FIX UPDATES
deb http://kambing.ui.edu/ubuntu feisty-updates main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty-updates main restricted universe multiverse##SECURITY UPDATES
deb http://kambing.ui.edu/ubuntu feisty-security main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty-security main restricted universe multiverse
Selanjutnya, kita tinggal meng-update ulang daftar software. Sekian pembahasan mengenai repository dan local repository di Ubuntu. Mengenai download software nya sendiri, kita dapat memanfaatkan synaptic package manager.