3月 132016
 

yum源站主要包含如下内容:

  1. 要发布的rpm包
  2. 通过工具将rpm包进行索引(createrepo)
  3. 通过webserver提供服务(如果是本地yum源也可以没有webserver;如果是ftp地址也是可以的)

安装工具:

创建目录

添加rpm包

创建索引:

注意:

  1. 每次添加rpm包,都要重新创建索引
  2. -o 选项的意思是: 把repodata目录创建到这里; 最后一个路径指的是rpm包存放的位置

如果想把rpm包存放在 centos/6/x86_64/packages 目录下,则

 

之于webserver如何配置,这里就不说了

createrepo 总是会扫描指定目录下的所有子目录的

 

参考: http://www.nowo.com/create_private_yum_repo/

 Posted by at 下午 11:12

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据