dpkg-deb --extract 的使用

測試環境

以下測試是在「Xubuntu 14.04 64位元」。

使用範例

「dpkg-deb --extract」的使用範例,請參考『如何解開「deb檔(Debian Package)」』這篇。

手冊說明

$ man dpkg-deb

可以看到一段說明

COMMANDS

  ...略...


       -x, --extract archive directory
              Extracts the filesystem tree from a package archive into the specified directory.

              Note  that  extracting  a  package  to the root directory will not result in a correct installation! Use dpkg to install
              packages.

              directory (but not its parents) will be created if necessary, and its permissions modified to match the contents of  the
              package.

$ man dpkg

可以看到一段說明

ACTIONS

  ...略...

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

              ...略...

              -x, --extract archive directory
                  Extract the files contained by package.