createrepo --help

   createrepo [options] directory-of-packages

   Options:
    -u, --baseurl <url> = optional base url location for all files
    -o, --outputdir <dir> = optional directory to output to
    -x, --exclude = files globs to exclude, can be specified multiple times
    -q, --quiet = run quietly
    -n, --noepoch = don't add zero epochs for non-existent epochs
                   (incompatible with yum and smart but required for
                    systems with rpm < 4.2.1)
    -g, --groupfile <filename> to point to for group information (precreated)
                   (<filename> relative to directory-of-packages)
    -v, --verbose = run verbosely
    -c, --cachedir <dir> = specify which dir to use for the checksum cache
    -C, --checkts = don't generate repo metadata, if their ctimes are newer
                    than the rpm ctimes.
    -i, --pkglist = use only these files from the directory specified
    -h, --help = show this help
    -V, --version = output version
    -p, --pretty = output xml files in pretty format.
    --update = update existing metadata (if present)  仅对更新rpm包进行索引
    -d, --database = generate the sqlite databases.  生成sqllite格式文件,便于sql查询
    --skip-stat = skip the stat() call on a --update, assumes if the name
                  is the same then the file is the same.