Debian查找特定软件包的常用方法
一 基本搜索与信息查看
sudo apt updateapt search <关键词>apt show <包名>apt list --installedapt list --installed | grep <包名> 或 dpkg -l | grep <包名>二 按文件名或已安装文件定位包
apt-file search <文件名>(首次使用需 sudo apt install apt-file && sudo apt-file update)dpkg -L <包名>dpkg -S <文件完整路径>三 版本与依赖查询
apt-cache policy <包名>apt-cache depends <包名>apt-cache rdepends <包名>apt-cache showpkg <包名>四 实用组合示例
apt search nginx 然后 apt show nginxapt list --installed | grep nginxdpkg -S /usr/bin/htopdpkg -L htopapt-file search nginx.conf