Kamis, 08 Oktober 2009

Rubah repo Centos 5.3 64 bit ke server IIX

gue kemarin nyoba install centos 5.3 nyang 64 bit trus biasanya khan klo ubuntu repositorynya gue arahin ke server IIX entah itu telkom,unej kambing kebo gudel kadal he he ...bercanda.tujuannya ya untuk irit benwit. Nah di Centos gue pengennya gitu juga gue set ke IIX.coba ini coba itu ,tanya temen ini tanya temen itu belum ada hasil karena memang mayoritas pake nyang 32 bit alias i386.akhirnya tak pblist ke milis tanya-jawab@linux.or.id daha dapet solvednya tengkyu untuk mas yuda nugrahadi.

Biar temen-temen nyang mau rubah ke repo IIX ga kesulitan nih gue tulisin langkah-langkahnya:
1. back up dulu /etc/yum.repos.d/Centos-Base.repo ke /etc/yum.repos.d/Centos-Base.repo_backup.
2. edit /etc/yum.repos.d/Centos-Base.repo caranya dengan editor kesayangan vi /etc/yum.repos.d/Centos-Base.repo
isikan :
[BASE]
name=CentOS-$releasever - Base
baseurl=http://repo.ugm.ac.id/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:////etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://repo.ugm.ac.id/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:////etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://repo.ugm.ac.id/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:////etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://repo.ugm.ac.id/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:////etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

cat: gue pake repo ugm kalo mo pake repo lain misal unej.ac.id tinggal menyesuaikan url nya.
setelah itu simpan dengan :wq
kemudian test update ke repo baru atau test install misal yum install nmap
klo muncul seperti ini :
yum install nmap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:4.11-1.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
nmap x86_64 2:4.11-1.1 BASE 680 k

Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 680 k
Is this ok [y/N]:

berarti anda sudah berhasil.

selamat mencoba...

Tidak ada komentar:

Posting Komentar