如何检查尚未安装的软件包的详细信息?也就是说,我想在安装软件包之前弄清楚它将安装哪些二进制文件。
例如
dpkg -l binutils*
上面列出了提到模式的软件包,并说 binutils 已安装,但 binutils-gold 未安装。
dpkg -L binutils
上面列出了 binutils 在您的系统中安装的所有二进制文件或至少所有文件。我想在安装 binutils-gold 之前对其进行类似的查询,对于任何其他软件包也是如此。
答案1
您可以使用and/or--dry-run
选项来查看单个/命令的所有效果apt
apt-get
apt
apt-get
引用apt-get
手册页
-s、--模拟、--just-print、--dry-run、--recon、--no-act
No action; perform a simulation of events that would occur based on the current system state but do not actually change the system. Locking will be disabled (Debug::NoLocking) so the system state could change while apt-get is running. Simulations can also be executed by non-root users which might not have read access to all apt configuration distorting the simulation. A notice expressing this warning is also shown by default for non-root users (APT::Get::Show-User-Simulation-Note). Configuration Item: APT::Get::Simulate.