createrepo
linux
Initialize an RPM repository in a directory, including all XML and SQLite files.
More info →Options (4)
-v, --verbosebooleanInitialize a repository, exclude test RPMs and display verbose logs
Example:
createrepo {{[-v|--verbose]}} {{[-x|--excludes]}} {{test_*.rpm}} {{path/to/directory}}-x, --excludesbooleanInitialize a repository, exclude test RPMs and display verbose logs
Example:
createrepo {{[-v|--verbose]}} {{[-x|--excludes]}} {{test_*.rpm}} {{path/to/directory}}-S, --skip-symlinksbooleanInitialize a repository, using SHA1 as the checksum algorithm, and ignoring symbolic links
Example:
createrepo {{[-S|--skip-symlinks]}} {{[-s|--checksum]}} {{sha1}} {{path/to/directory}}-s, --checksumbooleanInitialize a repository, using SHA1 as the checksum algorithm, and ignoring symbolic links
Example:
createrepo {{[-S|--skip-symlinks]}} {{[-s|--checksum]}} {{sha1}} {{path/to/directory}}Examples (3)
Initialize a basic repository in a directory
createrepo path/to/directoryInitialize a repository, exclude test RPMs and display verbose logs
createrepo [-v|--verbose] [-x|--excludes] test_*.rpm path/to/directoryInitialize a repository, using SHA1 as the checksum algorithm, and ignoring symbolic links
createrepo [-S|--skip-symlinks] [-s|--checksum] sha1 path/to/directorymade by @shridhargupta | data from tldr-pages