Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Createrepo command

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report