你问的“Debian extract 技巧”,通常是指在 Debian 系统下提取(解包/解压)各类文件,以及提取 Debian 软件包(.deb)内容的技巧。下面分场景讲,比较实用。
.tar / .tar.gz / .tar.xztar xf file.tar
tar xzf file.tar.gz
tar xJf file.tar.xz
技巧:
x = 解压f = 文件tar xf 基本通吃.zipunzip file.zip
只解压部分文件:
unzip file.zip "*.txt"
.rar(需安装)sudo apt install unrar
unrar x file.rar
.7zsudo apt install p7zip-full
7z x file.7z
.deb 包内容(重点)dpkg-deb(推荐)dpkg-deb -x package.deb ./out
只提控制信息:
dpkg-deb -e package.deb ./control
ar(底层方式)ar x package.deb
会得到:
debian-binarycontrol.tar.*data.tar.*再解:
tar xf data.tar.zst
dpkg -L nginx
apt download vim
tar xf file.tar --keep-old-files
tar tf file.tar
unzip -l file.zip
tar xf file.tar -C /tmp/test
man 命令.deb ≠ 压缩包,是 ar 包tar / unzipdpkg-deb -x如果你是指某种特定 extract(比如源码、ISO、boot、rootfs),可以告诉我具体场景,我给你更针对性的方法。