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错
分享到:
收藏
