配置本地yum (local repository configuration)
来源:互联网 发布:十大天价域名 编辑:程序博客网 时间:2024/05/16 01:31
通常是有一个mount OS ISO到本地的文件夹下面。我是通过这条命令做的
sudo mount -o loop -t iso9660 -r /home/xxx/iso/rhel-server-5.4-i386.iso /mnt/iso/
然后, 配置/etc/yum.conf.
1 [main]
2 cachedir=/var/cache/yum
3 keepcache=0
4 debuglevel=2
5 logfile=/var/log/yum.log
6 distroverpkg=redhat-release
7 tolerant=1
8 exactarch=1
9 obsoletes=1
10 gpgcheck=1
11 plugins=1
12
13 # Note: yum-RHN-plugin doesn't honor this.
14 metadata_expire=1h
15
16 # Default.
17 # installonly_limit = 3
18
19 [base]
20 baseurl=file:///mnt/iso/Server/
21 # in /etc/yum.repos.d
当然, 你还有可能碰到这种问题 Header V3 DSA signature: NOKEY, key ID 37017186
那么执行如下命令
find /mnt/iso -name "*KEY*" -exec rpm --import '{}' /;
如果是一个checksum的问题, 添加一行如下, 到/etc/yum.conf
http_caching=packages
- 配置本地yum (local repository configuration)
- Setup Local Yum Repository On CentOS 7
- Setup Local Yum Repository On CentOS 7
- centos7配置yum本地源时报错Repository 'centos7-media': Error parsing config
- 搭建Nexus Repository 3.6.0-02和配置apache-maven-3.5.2和本地的local Repository以及项目的pom.xml(IDEA 打包等)
- yum本地源配置
- CentOS 本地yum配置
- yum配置本地资源
- yum本地源配置
- yum本地配置
- 配置本地yum源
- 配置YUM本地源
- yum本地源配置
- yum本地源配置
- 配置本地yum仓库
- 配置本地yum源
- 配置yum本地源
- yum本地源配置
- GridView中判断男女的方法
- SOAOffice2010支持最新的Office2010
- CSS中expression使用简介
- height 100 无效
- IIS 错误集锦
- 配置本地yum (local repository configuration)
- Brew---实现 子目录 cpp文件添加
- css 判断浏览器
- 乘法口决表—C#控制台实例
- java mail InvocationTargetException
- IE6下CSS背景图片有闪动BUG解决 图片缓存
- 微软公司软件开发模式简介 收藏
- 用ubuntu的grub2引导centos5.4
- AHK 切换/获取当前的输入法