Linux - CentOS yum repository

# vi /etc/yum.repos.d/dag.repo
> name=Dag RPM Repository for Red Hat Enterprise Linux
> baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
> gpgcheck=1
> enabled=1
# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 


# cd /etc/yum.repos.d
# cp CentOS-Base.repo tnc-mirror.repo
# mv CentOS-Base.repo CentOS-Base.default
# vi tnc-mirror.repo
(Modify ftp://ftp2.tnc.edu.tw/pub1/centos...)
# rpm --import ftp://ftp2.tnc.edu.tw/pub1/centos/RPM-GPG-KEY-CentOS-4

Comments