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.