您好,欢迎访问一九零五行业门户网

CentOS如何制作本地rpm源

下面由centos教程栏目给大家介绍centos制作本地rpm源的方法,希望对需要的朋友有所帮助!
安装createrepo
yum install createrepo
制作本地rpm源
cd /opt/yliyun/confcreaterepo ./rpm
repo配置
新建centos-local.repo
/opt/yliyun/conf/centos-local.repo# centos-local.repo## this repo can be used with mounted dvd media, verify the mount point for# centos-6. you can use this repo and yum to install items directly off the# dvd iso that we release.## to use this repo, put in your dvd and use it with the other repos too:# yum --enablerepo=c6-local [command]# # or for only the media repo, do this:## yum --disablerepo=\* --enablerepo=c6-local [command][c6-local]name=centos-$releasever - mediabaseurl=file:///opt/yliyun/conf/rpm/gpgcheck=0enabled=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
安装本地rpm
yum --disablerepo=\* --enablerepo=c6-local -c conf/centos-local.repo -q -y localinstall conf/rpm/*.rpm --nogpgcheck
以上就是centos如何制作本地rpm源的详细内容。
其它类似信息

推荐信息