Home > LiNuX (based on debian) > Membuat mirror debian lokal

Membuat mirror debian lokal

Debian mempunyai hirarki pemaketan mirror yang cukup mudah dipahami, tetapi sebelum mengimplementasikan tutorial ini, ada baiknya anda membaca link ini terlebih dahulu.

  1. Install paket yang diperlukan
  2. root@constantine:~# apt-get install debmirror

  3. Baca manualnya dengan seksama
  4. root@constantine:~# man debmirror

  5. Testing via konsole
  6. root@constantine:~# debmirror –debug –progress –verbose –md5sum –passive –nosource –host=ftp.de.debian.org –method=http –root=debian –dist=lenny,lenny-proposed-updates –section=main,contrib,non-free –arch=i386 –postcleanup –ignore-missing-release –ignore-release-gpg –ignore-small-errors –pdiff=mirror /mnt/mirror/debian

  7. Membuat script executeable
  8. Membuat filebaru dengan nama mirrorku.sh root@constantine:~# touch mirrorku.sh menjadikan file mirrorku.sh executable root@constantine:~# chmod +x mirrorku.sh mengisi file mirrorku.sh sbb : root@constantine:~# mcedit mirrorku.sh #!/bin/bash debmirror --debug --progress --verbose --md5sum --passive --nosource \ --host=ftp.de.debian.org --method=http --root=debian \ --dist=lenny,lenny-proposed-updates --section=main,contrib,non-free \ --arch=i386 --postcleanup --ignore-missing-release --ignore-release-gpg \ --ignore-small-errors --pdiff=mirror /mnt/mirror/debian

  9. Membuat mirror kita selalu ter-update
  10. Untuk dapat melakukan daily update, copy-kan file yg telah kita buat ke direktori /etc/cron.daily/ root@constantine:~# cp /home/lqman/mirrorku.sh /etc/cron.daily/mirrorku.sh

Happy mirroring.

Sumber :
1. man debmirror
2. /usr/share/doc/debmirror/*.*

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: