#Check whether exist the following packages
rpm -qa | grep -E "deltarpm|python-deltarpm|createrepo"
#If this packages exist, update them.
rpm -Uvh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
rpm -Uvh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# If this packages do not exist, install them.
rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
# install createrepo
rpm -ivh createrepo-0.9.9-24.el6.noarch.rpm
# Check whether install successfully.
rpm -qa | grep create
# Configure redhat/centos local yum repo
# Create local yum repo directory
mkdir /root/packs
# Copy the rpm packages into the directory /root/packs
# Create the index of local yum repo
cd /root/packs
createrepo -v /root/packs/
# Build a directory : repodata in the dir /root/packs
# Add a repo config file
vi /etc/yum.repos.d/local.repo
Add the following contents:
[localRepo]
name=localRepo
baseurl=file:///root/packs
enable=1
gpgcheck=0
# Execute the following command to upgrade the yum repo:
yum clean all; // Clean all the cache.
yum list; // List yum repo's all the packages.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
createrepo_rpm_packages.tar.gz (4个子文件)
createrepo
deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm 71KB
Readme.txt 1KB
createrepo-0.9.9-24.el6.noarch.rpm 95KB
python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm 26KB
共 4 条
- 1
riumeirei
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页