# deb2rpm **Repository Path**: oepkgs/deb2rpm ## Basic Information - **Project Name**: deb2rpm - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2023-10-31 - **Last Updated**: 2024-12-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # deb2rpm #### 介绍 本项目目标为openEuler引入Debian的软件包,将deb包转化为openEuler上可用的rpm包及srpm源码包。 #### 软件架构 - 主要支持openEuler-22.03_LTS - deb包源支持Ubuntu各版本,如jammy(20)、bionic(18)等 #### 安装教程 1. 在家目录下`git clone`本项目 2. 执行`./initialize.sh`进行初始化(数据库初始化可能需要较长时间) #### 使用说明 执行`python3 deb2rpm.py -h`查看帮助信息如下: ``` usage: deb2rpm.py [-h] [-d DEP_JSON] [-D DEEP_DEP_JSON] [-t BUILD_TYPE] [-s] [-k] [-a] [-b] target Build the target from deb to rpm positional arguments: target The target package options: -h, --help show this help message and exit -d DEP_JSON, --dep-json DEP_JSON Specify the path of json file with target dependency -D DEEP_DEP_JSON, --deep-dep-json DEEP_DEP_JSON Specify the path of json file with all recursive dependency of target -t BUILD_TYPE, --build-type BUILD_TYPE The type of building: source_and_binary(default) | source | binary -s, --show-dep-only Only show the dependency infomation but not build -k, --keep-all-rpms Use if you want to keep all the rpms, else only keep rpms of target -a, --auto-build Auto build the target recursively -b, --build-dep Install all the exist build-depends ``` 对以上参数的具体说明如下: - target:需要转换的deb源码包名,比如`zip`、`nginx`等 - `-d`、`--dep-json`:指定target的依赖关系json文件路径,允许相对路径和绝对路径,如果不指定则不保存对应的json文件 - `-D`、 `--deep-dep-json`:指定target的所有递归全量依赖关系json文件路径,允许相对路径和绝对路径,如果不指定则不保存对应的json文件 - `-t`、`--build-type`:指定构建类型,可选值为`source_and_binary`、`source`、`binary`,默认为`source_and_binary`,分别对应源码包和二进制包同时构建、只构建源码包、只构建二进制包 - `-s`、`--show-dep-only`:仅展示target的依赖关系,不进行构建 - `-k`、`--keep-all-rpms`:构建完成后保留所有构建出的rpm包,否则只保留target的rpm包 - `-a`、`--auto-build`:自动构建target的所有递归依赖关系 - `-b`、`--build-dep`:安装target的所有构建依赖 具体例子可参考[doc/examples.md](./doc/examples.md)