In Redhat6 future systems will exist yum repositoryYum database manually generatedThis issue
And several previous versions of the database are automatically generated
May be mirrored with redhat6 about it .xml files and package files are not in a place that no detailed research to explore next time
First determine yum of these packages have been fitted
There areyum yum-updatesd yum-security yum-metadata-parser yum-rhh-pluginThese packages
Then mount your image to a directory or cp
Highly recommend to cp to directory,It is easy to use
Then it is toInstall createrepo generate the database
1 2 |
rpm -ivh createrepo-(版本号).rpm rpm -qa | grep createrepo |
Inquiries about whether the successful installation will respond to the appropriate version number
Then there is theMost criticalStep
Use createrepo generate yum Universal DatabaseThe key here is generated when the database requires prior find this file in the mirror xxx.xml
1 |
createrepo -g [xx.xml的绝对路径] [生成数据库的地点你在/etc/yum.repo.d/xxx.repo中输入的file的路径] |
Such a database is generated
/etc/yum.repo.d/xxx.repoBased on what you write file path to find the generated database file very easy to use yum
Original article written by LogStudio:R0uter's Blog » The method of manually generating yum repository Redhat6
Reproduced Please keep the source and description link:https://www.logcg.com/archives/216.html