YUM源更新问题的解决
2012-06-01 00:23:05 来源:我爱运维网 评论:0 点击:
问题:新定制了一个RPM包(LiveTV),放入了YUM源服务器上一个名为5IOPS的repository中.客户机使用yum install LiveTV时,报"no package..."...
问题:新定制了一个RPM包(LiveTV),放入了YUM源服务器上一个名为5IOPS的repository中.客户机使用yum install LiveTV时,报"no package..."与"nothing to do"的错误退出.
经定位,首先问题在于YUM源服务器上,添加rpm安装包(LiveTV)后,5IOPS的repodata需要更新(很关键—将新包加入xml文件列表):
经定位,首先问题在于YUM源服务器上,添加rpm安装包(LiveTV)后,5IOPS的repodata需要更新(很关键—将新包加入xml文件列表):
[root@5iops 5IOPS]# pwd
/data/5iops/web/rhel_5.8_repo/5IOPS
[root@5iops 5IOPS] # createrepo -v .
[root@5iops 5IOPS repodata]# pwd
/data/5iops/web/rhel_5.8_repo/5IOPS /repodata
[root@5iops 5IOPS repodata] # ls -al
total 84
drwxr-xr-x 2 root root 4096 May 31 20:35 .
dr-xr-xr-x 6 root root 4096 May 31 20:35 ..
-rw-r--r-- 1 root root 21902 May 31 20:35 filelists.xml.gz
-rw-r--r-- 1 root root 33506 May 31 20:35 other.xml.gz
-rw-r--r-- 1 root root 5245 May 31 20:35 primary.xml.gz
-rw-r--r-- 1 root root 951 May 31 20:35 repomd.xml
其次,客户端需要清除yum旧文件的cache:
[root@host-24-18 yum.repos.d]# yum clean all
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Cleaning up Everything
最后,搞掂:
[root@host-24-18 yum.repos.d] # yum install LiveTV
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package LiveTV.x86_64 0:1.3-0 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
LiveTV x86_64 1.3-0 5IOPS 890 k
Transaction Summary
====================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 890 k
Is this ok [y/N]: y
Downloading Packages:
LiveTV-1.3-0.x86_64.rpm | 890 kB 00:28
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : LiveTV 1/1
Cluster/productid | 1.7 kB 00:00
ClusterStorage/productid | 1.8 kB 00:00
Installed products updated.
Installed:
LiveTV.x86_64 0:1.3-0
Complete!
上一篇:Nginx升级后导致文件下载不完整或僵死的解决
下一篇:启动RSYNC服务时出现error while loading shared libraries: libiconv.so.2错
分享到:
收藏
评论排行
- ·Windows(Win7)下用Xming...(92)
- ·使用jmx client监控activemq(20)
- ·Hive查询OOM分析(14)
- ·复杂网络架构导致的诡异...(8)
- ·使用 OpenStack 实现云...(7)
- ·影响Java EE性能的十大问题(6)
- ·云计算平台管理的三大利...(6)
- ·Mysql数据库复制延时分析(5)
- ·OpenStack Nova开发与测...(4)
- ·LTPP一键安装包1.2 发布(4)
- ·Linux下系统或服务排障的...(4)
- ·PHP发布5.4.4 和 5.3.1...(4)
- ·RSYSLOG搭建集中日志管理服务(4)
- ·转换程序源码的编码格式[...(3)
- ·Linux 的木马程式 Wirenet 出现(3)
- ·Nginx 发布1.2.1稳定版...(3)
- ·zend framework文件读取漏洞分析(3)
- ·Percona Playback 0.3 development release(3)
- ·运维业务与CMDB集成关系一例(3)
- ·应该知道的Linux技巧(3)