Latest Posts »
Latest Comments »
Popular Posts »

架设yum服务器简单笔记

Written by bixuan on 2008年07月1号 – 11:03

3、4年前热衷架设yum和apt服务器,过后很久没在做过,现在都忘了,今天因为要用到,所以就做个笔记:
yum-3(印象中yum-2以前)以前是用:yum -arch /opt/rhel/rpms/ 来建立repo。
yum-3以后建立repo必须用createrepo:
rpm -Uvh createrepo-0.4.11-3.el5.noarch.rpm
createrepo -v /opt/rhel/5.2/os/

cat /etc/yum.repos.d/rhel.5.2.repo
[os]
name=Server1 Server Repository
baseurl=http://apt.ourlinux.net/rhel/5.2/os/
#baseurl=file:///opt/rhel/5.2/os/
gpgcheck=0


Tags: , ,
Posted in Softs, 运维小技巧 | No Comments »
 Page 1 of 1  1