Author Topic: Membuat Lokal Miror  (Read 1893 times)

0 Members and 1 Guest are viewing this topic.

Offline romiyanto

  • 128 kbps
  • ****
  • Posts: 129
    • View Profile
Membuat Lokal Miror
« on: Monday, 09 April 2012, 14:11:35 »
Salam COSI  :peace:
Berawal dari sering coba2 oprek COS karna banyakx mbak TUTI di forum yg seksi2   :D  :D tapi sering gagal  ^-^  ^-^   sehingga mesti inul lg, akhirnya bosan jg dgn perintah:
Code: [Select]
# yum updatealasanx bosan tunggin proses update yg memakan waktu. Akhirnya saya buat aja lokal mirror biar dipersingkat waktu tggx  :D  :D
Langsung aja d
1. Buat Flexshare misalx mirrors di default direktori /var/flexshares/shares/mirrors
    pastikan web akses sudah diaktifkan. (untuk cara buat flekshare silahkan obok2 forum ini)  :-[
2. Install rsync
   
Code: [Select]
# yum install rsync3. Sinkronkan server download ClearOS dgn mirror yg sdh disiapkan (no.1)
   
Code: [Select]
# rsync -rltv --delete --progress sync.clearfoundation.com::clearos /var/flexshare/shares/mirrors/clearos/
# rsync -rltv --delete --progress sync.clearfoundation.com::clearcentos /var/flexshare/shares/mirrors/clearcentos/
4. Silahkan tgg sampai selesai. kl saya ditinggal aja soale mirrorx kurng lebih 21 GB  :-[  :-[
5. Agar lokal mirror dpt digunakan, edit  /etc/yum.repos.d/base.repo
    menjadi spt ini:
Spoiler for Hiden:
Code: [Select]
[base-os]
name=ClearOS Enterprise 5.2 - OS
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2
gpgcheck=1

[base-console]
name=ClearOS Enterprise 5.2 - Console
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/console
gpgcheck=1

[base-updates]
name=ClearOS Enterprise 5.2 - Updates
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/updates
gpgcheck=1

[base-supplements]
name=ClearOS Enterprise 5.2 - Supplements
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/supplements
gpgcheck=1

[base-kernels]
name=ClearOS Enterprise 5.2 - Kernels
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/kernels
gpgcheck=1

[base-extras]
name=ClearOS Enterprise 5.2 - Extras
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/extras
gpgcheck=1
enabled=0

[base-plus]
name=ClearOS Enterprise 5.2 - Plus
baseurl=http://ip_server_mirror/flexshare/mirrors/clearos/enterprise/5.2/plus
gpgcheck=1
enabled=0

[clearcentos-os]
name=ClearOS 5.x - Minified CentOS - OS
baseurl=http://ip_server_mirror/flexshare/mirrors/clearcentos/5/os
gpgcheck=1
enabled=1

[clearcentos-updates]
name=ClearOS 5.x - Minified CentOS - Updates
baseurl=http://ip_server_mirror/flexshare/mirrors/clearcentos/5/updates
gpgcheck=1
enabled=1
6. Bersihkan cache data
   
Code: [Select]
# yum clean all7. Lokal Mirror siap digunakan  ^-^ skrng bisa yum update dll dgn tenang ga pake lama  :D  :D

sumber: http://www.clearfoundation.com/docs/howtos/creating_a_local_mirror
« Last Edit: Monday, 09 April 2012, 14:16:28 by romiyanto »
 

Hello Guest! Replies in this topic have been hidden from view. You are currently missing 3 replies. Please register or login if you want to view the replies.