linux rpm2cpio 解压下载好的rpm包

网友投稿 1000 2022-05-30

ECS信息

规格:2vCPUs | 4GiB | kc1.large.2

镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux rpm2cpio 解压下载好的rpm包

# yum search tcpdump Last metadata expiration check: 0:10:57 ago on Mon 04 Oct 2021 07:23:18 PM CST. =============================================================== Name Exactly Matched: tcpdump =============================================================== tcpdump.aarch64 : A network traffic monitoring tool tcpdump.src : A network traffic monitoring tool ============================================================== Name & Summary Matched: tcpdump ============================================================== tcpdump-help.aarch64 : Help documents for tcpdump tcpdump-debugsource.aarch64 : Debug sources for package tcpdump tcpdump-debuginfo.aarch64 : Debug information for package tcpdump

# rpm -qa | grep tcpdump tcpdump-4.9.3-3.oe1.aarch64

# yum install tcpdump-4.9.3-3.oe1.aarch64 Last metadata expiration check: 0:11:34 ago on Mon 04 Oct 2021 07:23:18 PM CST. Package tcpdump-14:4.9.3-3.oe1.aarch64 is already installed. Dependencies resolved. Nothing to do. Complete!

# wget https://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/Packages/tcpdump-4.9.3-3.oe1.aarch64.rpm --2021-10-04 19:36:01-- https://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/Packages/tcpdump-4.9.3-3.oe1.aarch64.rpm Resolving repo.openeuler.org (repo.openeuler.org)... 159.138.11.195 Connecting to repo.openeuler.org (repo.openeuler.org)|159.138.11.195|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 395800 (387K) [application/x-redhat-package-manager] Saving to: ‘tcpdump-4.9.3-3.oe1.aarch64.rpm’ tcpdump-4.9.3-3.oe1.aarch64.rpm 100%[============================================================================>] 386.52K 863KB/s in 0.4s 2021-10-04 19:36:02 (863 KB/s) - ‘tcpdump-4.9.3-3.oe1.aarch64.rpm’ saved [395800/395800]

# ll total 392K -rw------- 1 root root 107 Oct 3 19:42 if_example.sh -rw------- 1 root root 387K Mar 26 2020 tcpdump-4.9.3-3.oe1.aarch64.rpm

# rpm2cpio tcpdump-4.9.3-3.oe1.aarch64.rpm | cpio -idmv ./usr/sbin/tcpdump ./usr/sbin/tcpslice ./usr/share/doc/tcpdump ./usr/share/doc/tcpdump/CHANGES ./usr/share/doc/tcpdump/CREDITS ./usr/share/doc/tcpdump/README.md ./usr/share/licenses/tcpdump ./usr/share/licenses/tcpdump/LICENSE 2507 blocks

# ll total 396K -rw------- 1 root root 107 Oct 3 19:42 if_example.sh -rw------- 1 root root 387K Mar 26 2020 tcpdump-4.9.3-3.oe1.aarch64.rpm drwx------ 4 root root 4.0K Oct 4 19:36 usr # tree ./usr ./usr ├── sbin │ ├── tcpdump │ └── tcpslice └── share ├── doc │ └── tcpdump │ ├── CHANGES │ ├── CREDITS │ └── README.md └── licenses └── tcpdump └── LICENSE 6 directories, 6 files

学习资料

弹性云服务器 ECS

openEuler-官网

openEuler-B站

openEuler-慕课

openEuler-文档

鲲鹏社区

linux rpm2cpio 解压下载好的rpm包

欢迎各位同学一起来交流学习心得^_^

Linux openEuler

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:MRS 2.x 普通集群通过密码验证访问presto
下一篇:Python Tonado 写一个Web应用
相关文章