Get the App
SLTechnology News&Howtos  ›  Servers  › 

Createrepo command

Shulou Source: shulou.com Published: 2022-06-03 05:31:27 09月21日 Update

Crearerepo command:

The createrepo command is used to create a yum source (software repository), that is, to index a large number of rpm packages stored in a specific local location, describe the dependency information required by each package, and form metadata

-u-baseurl specifies the address of the Base URL-- o-- outputdir specifies the output location of the metadata-x-- excludes specifies the package-I-- pkglist that needs to be excluded when forming the metadata specifies a file in which the package information will be included in the metadata to be generated, in a format exclusive to one line for each package information, without wildcards, rules, and range expressions. -n-- includepkg specifies the package information to be included in the local library through the command line, requiring a URL or local path. -Q-- quiet quiet mode performs the operation without outputting any information. -g-- groupfile specifies the group partition of the local software repository. Examples are as follows:

Createrepo-g comps.xml / path/to/rpms

Note: the group file needs to be placed in the same path as the rpm package.

-v-- verbose outputs details. -c-- cachedir specifies a directory to store checksum information for software packages in the software repository. When createrepo runs multiple times on the same warehouse file that has not changed significantly, specifying cachedir significantly improves its performance. -- update if the metadata already exists and only part of the software in the software warehouse has changed or increased or decreased, the original metadata can be upgraded directly with the update parameter, which is much more efficient than reanalyzing the rpm package dependency and generating new metadata. -p-- pretty outputs xml files in a neat format. -d-- database this option specifies that SQLite is used to store the generated metadata, the default.

Tags: Data information software warehouse file output command generation obvious location format path quiet neat same one line parameter only address performance Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Apple NVidia Shulou Tech Info Shulou Information