mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
674 B
Plaintext
22 lines
674 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# createrepo
|
|
|
|
> Initialize an RPM repository in a directory, including all XML and SQLite files.
|
|
> More information: <https://manned.org/createrepo>.
|
|
|
|
- Initialize a basic repository in a directory:
|
|
|
|
`createrepo {{path/to/directory}}`
|
|
|
|
- Initialize a repository, exclude test RPMs and display verbose logs:
|
|
|
|
`createrepo {{[-v|--verbose]}} {{[-x|--excludes]}} {{test_*.rpm}} {{path/to/directory}}`
|
|
|
|
- Initialize a repository, using SHA1 as the checksum algorithm, and ignoring symbolic links:
|
|
|
|
`createrepo {{[-S|--skip-symlinks]}} {{[-s|--checksum]}} {{sha1}} {{path/to/directory}}`
|