034、Linux中yum配置

vim /etc/yum.repos.d/my.repo

[163]

name=163

baseurl=http://mirrors.163.com/centos/6.4/os/x86_64/

enabled=1

gpgcheck=0


[163_updates]

name=163_updates

baseurl=http://mirrors.163.com/centos/6.4/updates/x86_64/

enabled=1

gpgcheck=0


[base]

name=CentOS-$releasever - Base

baseurl=http://pkg-repo.oss.letv.com/centos/$releasever/os/$basearch/


gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


[updates]

name=CentOS-$releasever - Updates

baseurl=http://pkg-repo.oss.letv.com/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


[extras]

name=CentOS-$releasever - Extras

baseurl=http://pkg-repo.oss.letv.com/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://pkg-repo.oss.letv.com/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


[contrib]

name=CentOS-$releasever - Contrib

baseurl=http://pkg-repo.oss.letv.com/centos/$releasever/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


你可能感兴趣的:(linux,yum)