Files
tldr/pages.zh/linux/createrepo.md

16 lines
489 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# createrepo
> 在目录中初始化一个RPM仓库包括所有的XML和SQLite文件。
> 更多信息:<https://manned.org/createrepo>。
- 在目录中初始化一个基本的仓库:
`createrepo {{path/to/directory}}`
- 初始化一个仓库排除测试RPM并显示详细日志
`createrepo -v -x {{test_*.rpm}} {{path/to/directory}}`
- 初始化一个仓库使用SHA1作为校验和算法并忽略符号链接
`createrepo -S -s {{sha1}} {{path/to/directory}}`