查看压缩包
[yeqiang@harbor tmp]$ tar -tvf control.tar.xz
drwxr-xr-x root/root 0 2021-03-18 09:43 ./
-rw-r--r-- root/root 247 2021-03-18 09:43 ./control
-rw-r--r-- root/root 469 2021-03-18 09:43 ./md5sums
指定只解压出./control文件
[yeqiang@harbor tmp]$ tar -xvf control.tar.xz ./control
./control
[yeqiang@harbor tmp]$ cat control
Package: linuxqq
Version: 2.0.0-b2
Architecture: arm64
Installed-Size: 32284
Maintainer: Tencent <support@tencent.com>
Recommends: tint2
Section: Internet
Priority: optional
Homepage: https://im.qq.com/linuxqq
Description: 腾讯QQ Linux版本。
[yeqiang@harbor tmp]$