From 91c5a0653245d9ba74f3d57ebe8e4ca9391692f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=A0=82=E7=8F=82?= Date: Thu, 20 Feb 2025 08:24:50 +0000 Subject: [PATCH] =?UTF-8?q?add=20docs/zh/docs/epkg/x2epkg=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=8C=87=E5=8D=97.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邱堂珂 --- ...77\347\224\250\346\214\207\345\215\227.md" | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "docs/zh/docs/epkg/x2epkg\344\275\277\347\224\250\346\214\207\345\215\227.md" diff --git "a/docs/zh/docs/epkg/x2epkg\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/docs/zh/docs/epkg/x2epkg\344\275\277\347\224\250\346\214\207\345\215\227.md" new file mode 100644 index 000000000..6093852a3 --- /dev/null +++ "b/docs/zh/docs/epkg/x2epkg\344\275\277\347\224\250\346\214\207\345\215\227.md" @@ -0,0 +1,41 @@ +# x2epkg 使用指南 + +## 介绍 + +本文介绍x2epkg软件包转换工具的简单使用。本文涉及操作结果示例均以root用户为例,无需安装。支持将rpm/deb/pkg.tar.zst安装包转换为[epkg](https://gitee.com/qiu-tangke/docs/blob/master/docs/zh/docs/epkg/epkg%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97.md) +安装包 + +## 下载 + +```bash +git clone https://gitee.com/openeuler/epkg.git +``` + +## 快速上手 + +下载epkg仓库后直接进入x2epkg目录下使用 +```shell +cd epkg/x2epkg +./x2epkg.sh --help +``` + +## 参数解析 + +```txt +Usage: + ./x2epkg xxx.rpm # 单个rpm包的转换 + ./x2epkg xxx.deb # 单个debian包的转换 + ./x2epkg xxx.pkg.tar.zst # 单个archlinux包的转换 + ./x2epkg file_path/*.rpm # 多个安装包的转换,同样适用于deb和pkg.tar.zst文件 + ./x2epkg xxx.rpm --out-dir PATH # 加上out-dir参数可以指明输出目录,如果不加则输出到包的同级目录下 +``` + +## 运行案例 + +```shell + cd /root + wget https://mirrors.huaweicloud.com/archlinux/core/os/x86_64/fakeroot-1.37-1-x86_64.pkg.tar.zst + cd epkg/x2epkg + ./x2epkg.sh /root/fakeroot-1.37-1-x86_64.pkg.tar.zst + ls /root/store/4t/4tmfsi5yikkq32rrulae6oi6u4txr5zu__fakeroot__1.37__1.epkg # 查看生成结果 +``` \ No newline at end of file -- Gitee