create_repo Usage Guide ​

Introduction ​

This document describes the basic usage of the create_repo package conversion tool. The operation result examples in this document use the root user. No installation is required. This tool generates a local repo source from the directory structure of epkg packages.

Download ​

bash
git clone https://atomgit.com/openeuler/epkg.git

Quick Start ​

After downloading the epkg repository, go to the create_repo directory and use the tool.

shell
cd epkg/create_repo
python3 create_repo.py --help

Prerequisites ​

The input directory is a package directory structure, as follows:

txt
# tree store/
store/
|-- 45
|   `-- 45dqn3vzum73pf7igmmu6zbcxndqqebr__glibc-devel__2.38__29.oe2403.epkg
|-- at
|   `-- atqwhznwbp6lzvur5stgb4jjem6tzllf__redis__4.0.14__6.oe2403.epkg
|-- bt
|   `-- btblk472ob4teixd522qgv6b2c7tk4v4__ncurses-base__5.9+20140118__1ubuntu1.epkg
|-- f7
|   `-- f7ealc3ghq6tdmvrh22l5vlxycgndwam__atlas__3.10.3__10.oe1.epkg
|-- jl
|   `-- jlrwn3rcjb4gbdx4uf77lslxg37rodyf__glibc__2.38__29.oe2403.epkg
|-- kc
|   `-- kclugzl6mtkqeqkgbmpf2vq4kpkeleqb__atlas-devel__3.10.3__10.oe1.epkg
`-- of
    `-- ofdjbysy76gs5tzzgxulaoumgqjfe6d2__audit__4.0.3__1.epkg

8 directories, 7 files

Parameter Description ​

txt
usage: create_repo.py [-h] -s STORE -c CONFIG

create repo parameters

optional arguments:
  -h, --help            Show the usage of command parameters.
  -s STORE, --store STORE
                        Specify the store directory of the epkg package repository.
  -c CONFIG, --config CONFIG
                        Specify the path of the repo manifest configuration file.

Example ​

shell
  cd epkg/create_repo
  python3 create_repo.py -s /root/store -c /root/config.yaml
  ls /root/repodata  # View the generation result. The output path is the same as the path of the store repository.