http://www.cnblogs.com/xiaoluo501395377/archive/2013/05/21/3089970.html
=====
建立repo庫
# createrepo -g /yum_repo/rhel7.2/repodata/81c149ffb2267c59a3e6405766b5ff3dc78e0637033e9f5aef564538359ff281-comps-Server.x86_64.xml /yum_repo/rhel7.2/Packages/
使用-g引數指定分組檔案:-g GROUPFILE, --groupfile=GROUPFILE 如果不加該引數,yum group list...不可用;分組檔案在iso映象檔案裡的repodata目錄下,一般是這種格式:xxx-comps-xxx.xml
-d, --database create sqlite database files: now default, see --no-database to disable
所以要使用該命令來建立repo資料庫:createrepo -g /../xxxxx-comps-Server.x86_64.xml /opt/rpm/local_repo //-d引數可以不要
http://www.cnblogs.com/rusking/p/4248946.html