HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

createrepo — Initialize an RPM repository in a directory, including all XML and SQLite files. More information: <

Submitted by: @import:tldr-pages··
0
Viewed 0 times
directorycreaterepocommandrpmincludingcliinitializerepository
linux

Problem

How to use the createrepo command: Initialize an RPM repository in a directory, including all XML and SQLite files. More information: <https://manned.org/createrepo>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: linux/createrepo

Revisions (0)

No revisions yet.