debian下的拆包及重新打包命令

1. debian下的拆包及重新打包命令

如果想要重新修改deb包里面的数据,可以使用此方法进行拆包然后重新打包

dpkg-deb -X …/openssh-client_6.1p1_i386.deb extract/

Extract and display the filenames contained by a package.
提取并显示包包含的文件名。

dpkg-deb -e …/openssh-client_6.1p1_i386.deb extract/DEBIAN/

Extract control-information from a package.
从包中提取控制信息。

dpkg-deb -b extract/ build/

Build a deb package.
构建 deb 包







具体可查看man dpkg

       dpkg-deb actions
              See   dpkg-deb(1)  for  more  information  about  the  following
              actions.

              -b, --build directory [archive|directory]
                  Build a deb package.
              -c, --contents archive
                  List contents of a deb package.
              -e, --control archive [directory]
                  Extract control-information from a package.
              -x, --extract archive directory
                  Extract the files contained by package.
              -X, --vextract archive directory
                  Extract and display the filenames contained by a
                  package.
              -f, --field  archive [control-field...]
                  Display control field(s) of a package.
              --ctrl-tarfile archive
                  Output the control tar-file contained in a Debian package.
              --fsys-tarfile archive
                  Output the filesystem tar-file contained by a Debian package.
              -I, --info archive [control-file...]
                  Show information about a package.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值