在本地做了一个yum源,但是我需要的yum包并不是很全。所以需要在yum源中添加相关的rpm包。具体操作步骤:
1.yum install createrepo
2.将rpm包copy到Packages中
3.执行命令 createrepo /home/centos64iso(yum包所在目录)
createrepo --update: Sometimes you have a lot of packages in your repsitory and regenerating the meta data for each package when only a few packages have been added or changed is just too time consuming. This is where --update comes in handy. You run createrepo just like you did before but you pass the --update flag to it. Like this:
createrepo --update </path/to/repo>
Now, createrepo will only update the items which have been changed, been added or been removed since the last time the meta data was generated.
Also mentioned in man createrepo
1.yum install createrepo
2.将rpm包copy到Packages中
3.执行命令 createrepo /home/centos64iso(yum包所在目录)
createrepo --update: Sometimes you have a lot of packages in your repsitory and regenerating the meta data for each package when only a few packages have been added or changed is just too time consuming. This is where --update comes in handy. You run createrepo just like you did before but you pass the --update flag to it. Like this:
createrepo --update </path/to/repo>
Now, createrepo will only update the items which have been changed, been added or been removed since the last time the meta data was generated.
Also mentioned in man createrepo