apt list
列出repository中的所有库,及其版本信息
比如,查看本机gcc的版本
apt list | grep libgcc | grep installed
显示:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libgcc-7-dev/bionic-updates,bionic-security,now 7.5.0-3ubuntu1~18.04 amd64 [installed,automatic]
libgcc1/bionic-updates,bionic-security,now 1:8.4.0-1ubuntu1~18.04 amd64 [installed,automatic]
本文介绍如何使用aptlist命令来查询已安装软件包的版本信息。通过示例展示如何查找特定软件包如gcc的版本,并解释了输出含义。提醒用户注意该命令的不稳定性。
1523

被折叠的 条评论
为什么被折叠?



