Rabu, 23 Juli 2008

Buat Repository Ubuntu

Langkah langkah buat repository ubuntu :D

1. Copy semua cd atau dvd anda ke hardisk (terserah taruh mana aja :D )
2. Setelah anda copy semua filenya seharusnya susunan direktorinya sbb :

Direktori letak anda mencopy
---pool
-------main
--------- file2 installer
-------multiverse
--------- file2 installer
-------restricted
--------- file2 installer
-------universe
--------- file2 installer
---dist
-------feisty
-----------main
----------------binary-i386
--------------------Packages.gz
-----------multiverse
----------------binary-i386
--------------------Packages.gz
-----------restricted
----------------binary-i386
--------------------Packages.gz
-----------universe
----------------binary-i386
--------------------Packages.gz
dst....

3. lakukan perintah scanpackage

root@dan:/home/ubrep/feisty# dpkg-scanpackages pool/main /dev/null | gzip -9c > dists/feisty/main/binary-i386/Packages.gz
root@
dan:/home/ubrep/feisty# dpkg-scanpackages pool/multiverse /dev/null | gzip -9c > dists/feisty/multiverse/binary-i386/Packages.gz
root@
dan:/home/ubrep/feisty# dpkg-scanpackages pool/restricted/ /dev/null | gzip -9c > dists/feisty/restricted/binary-i386/Packages.gz
root@
dan:/home/ubrep/feisty# dpkg-scanpackages pool/universe/ /dev/null | gzip -9c > dists/feisty/universe/binary-i386/Packages.gz

4. update source list dengan menambahkan baris berikut (letak file : /etc/apt/source.list)

deb file:///home/ubrep/feisty feisty main
deb file:///home/ubrep/feisty feisty multiverse
deb file:///home/ubrep/feisty feisty restricted
deb file:///home/ubrep/feisty feisty universe

itu kalo anda mau make untuk localhost aja, kalo mau agar dapat diakses jaringan bisa anda ganti file dengan http atau ftp sesuai keinginan anda :D

5. yang terakhir update dr source list yg baru

root@
dan:/home/ubrep/feisty# apt-get update

6. udah slesai......... :)

Tidak ada komentar: