在本地做了一个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
腾讯云更改yum源:http://www.linuxdiyf.com/linux/15880.html
更换阿里云YUM源:http://www.linuxdiyf.com/linux/15169.html
更新yum源/apt-get源:http://www.linuxdiyf.com/linux/13136.html
Fedora更新源(sohu yum源):http://www.linuxdiyf.com/linux/11638.html
RHEL5.x&RHEL6.x更换CentOS yum源:http://www.linuxdiyf.com/linux/8248.html