Initialize a repository, exclude test RPMs and display verbose logs

createrepo

  • Initializes an RPM repository in the given directory, including all XML and SQLite files.
    More information: <https://manned.org/createrepo>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

createrepo -v -x {{test_*.rpm}} {{path/to/directory}}

click the source code to copy install createrepo on any operating system with command-not-found.com