createrepo(8)createrepo(8)NAME
createrepo - Create repomd (xml-rpm-metadata) repository
SYNOPSIS
createrepo [options] <directory>
DESCRIPTION
createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms.
OPTIONS -u --baseurl <url>
Optional base url location for all files. (not used by any clients at this time)
-o --outputdir <url>
Optional output directory (useful for read only media).
-x --exclude <package>
File globs to exclude, can be specified multiple times.
-i --pkglist <filename>
specify a text file which contains the complete list of files to include in the repository from the set found in the directory. File
format is one package per line, no wildcards or globs.
-q --quiet
Run quietly.
-g --groupfile <groupfile>
A precreated xml filename to point to for group information.
See examples section below for further explanation.
-v --verbose
Run verbosely.
-c --cachedir <path>
Specify a directory to use as a cachedir. This allows createrepo to create a cache of checksums of packages in the repository. In
consecutive runs of createrepo over the same repository of files that do not have a complete change out of all packages this
decreases the processing time dramatically.
--update
If metadata already exists in the outputdir and an rpm is unchanged (based on file size and mtime) since the metadata was generated,
reuse the existing metadata rather than recalculating it. In the case of a large repository with only a few new or modified rpms
this can significantly reduce I/O and processing time.
-C --checkts
Don't generate repo metadata, if their timestamps are newer than its rpms. This option decreases the processing time drastically
again, if you happen to run it on an unmodified repo, but it is (currently) mutual exclusive with the --split option.
--split
Run in split media mode. Rather than pass a single directory, take a set of directories corresponding to different volumes in a
media set.
-p --pretty
Output xml files in pretty format.
-V --version
Output version.
-h --help
Show help menu.
-d --database
Generate sqlite databases for use with yum.
EXAMPLES
Here is an example of a repository with a groups file. Note that the groups file should be in the same directory as the rpm packages (i.e.
/path/to/rpms/comps.xml).
createrepo -g comps.xml /path/to/rpms
FILES
repodata/filelists.xml.gz
repodata/other.xml.gz
repodata/primary.xml.gz
repodata/repomd.xml
SEE ALSO
yum (8) yum.conf (5)
AUTHORS
Seth Vidal <skvidal@phy.duke.edu>
BUGS
Any bugs which are found should be emailed to the mailing list: rpm-metadata@linux.duke.edu
Seth Vidal 2005 Jan 2 createrepo(8)
Check Out this Related Man Page
yum-utils(1)yum-utils(1)NAME
yum-utils - tools for manipulating repositories and extended package management
SYNOPSIS
debuginfo-install - install debuginfo packages and their dependencies
find-repos-of-install - report which repository the package was installed from
needs-restarting - report process ids that started running before they or some component they use were updated
package-cleanup - manage package cleanup, duplicates, orphaned packages and outstanding dependency problems
repo-graph - outputs a full package dependency list in dot format
repo-rss - generates an RSS feed from one or more repositories
repoclosure - reads metadata of repositories, checks dependencies and displays list of unresolved dependencies
repodiff - takes two or more repositories, returns a list of added, removed or changed packages
repomanage - manages a directory of rpm packages, returns a list of newest or oldest packages in a directory
repoquery - query yum repositories and get additional information on the them
reposync - synchronize a remote yum repository to a local directory using yum to retrieve packages
repotrack - track packages and its dependencies and downloads them
show-changed-rco - list of changes to a package Requires, Conflicts and Obsoletes data from installed to a specified rpm file
show-installed - gives a compact description of packages installed and makes use of comps groups in repositories
verifytree - verify that a local yum repository is consistent
yum-builddep - installs missing dependencies to build a specified package
yum-complete-transaction - finds incomplete or aborted yum transactions and attempts to complete them
yum-config-manager - toggle yum repositories, add new repositories and set main yum configuration options
yum-debug-dump - creates gzipped file containing information for debugging problems
yum-debug-restore - replays any transactions captured in gzipped file in yum shell
yum-groups-manager - create and edit yum's group metadata
yum-installed - print a compact package list making use of comps groups
yumdb - query or alter the yum database
yumdownloader - downloads packages from yum repositories including source RPMs
DESCRIPTION
yum-utils is a collection of tools and programs for managing yum repositories, installing debug packages, source packages, extended infor-
mation from repositories and administration.
NOTES
See respective tools for additional help for commands without a manual page
SEE ALSO debuginfo-install(1), package-cleanup(1), repodiff(1), repoquery(1), reposync(1), repo-rss(1), show-changed-rco(1), show-installed(1), yum-
downloader(1), yum-builddep(1), yum-debug-dump(1), yum-groups-manager(1), yumdb(8), yum-complete-transaction(8)AUTHOR
Shawn Starr <shawn.starr@rogers.com>
yum-utils August 2011 yum-utils(1)