createrepo --help
createrepo [options] directory-of-packages
Options:
-u, --baseurl <url> = optional base url location for all files
-o, --outputdir <dir> = optional directory to output to
-x, --exclude = files globs to exclude, can be specified multiple times
-q, --quiet = run quietly
-n, --noepoch = don't add zero epochs for non-existent epochs
(incompatible with yum and smart but required for
systems with rpm < 4.2.1)
-g, --groupfile <filename> to point to for group information (precreated)
(<filename> relative to directory-of-packages)
-v, --verbose = run verbosely
-c, --cachedir <dir> = specify which dir to use for the checksum cache
-C, --checkts = don't generate repo metadata, if their ctimes are newer
than the rpm ctimes.
-i, --pkglist = use only these files from the directory specified
-h, --help = show this help
-V, --version = output version
-p, --pretty = output xml files in pretty format.
--update = update existing metadata (if present) 仅对更新rpm包进行索引
-d, --database = generate the sqlite databases. 生成sqllite格式文件,便于sql查询
--skip-stat = skip the stat() call on a --update, assumes if the name
is the same then the file is the same.
createrepo 使用
精选 翻译supermanse 博主文章分类:Linux
文章标签 createrepo 文章分类 服务器
上一篇:yum server 搭建与使用
下一篇:wsus
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章