查看apt-get安装软件的版本

apt-cache search name

查询

apt-get install name

安装

dpkg

dpkg dpkg-checkbuilddeps dpkg-genchanges dpkg-mergechangelogs dpkg-query dpkg-shlibdeps dpkg-trigger
dpkg-architecture dpkg-deb dpkg-gencontrol dpkg-name dpkg-reconfigure dpkg-source dpkg-vendor
dpkg-buildflags dpkg-distaddfile dpkg-gensymbols dpkg-parsechangelog dpkg-scanpackages dpkg-split
dpkg-buildpackage dpkg-divert dpkg-maintscript-helper dpkg-preconfigure dpkg-scansources dpkg-statoverride

dpkg-query -s name

查询特定软件状态
Package: iw
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 214
Maintainer: Debian wpasupplicant Maintainers pkg-wpa-devel@lists.alioth.debian.org
Architecture: amd64
Multi-Arch: foreign
Version: 3.17-1
Replaces: aircrack-ng (<< 1:1.0~rc2-1)
Depends: libc6 (>= 2.14), libnl-3-200 (>= 3.2.7), libnl-genl-3-200 (>= 3.2.7)
Recommends: crda
Breaks: aircrack-ng (<< 1:1.0~rc2-1)
Description: tool for configuring Linux wireless devices
This package contains the `iw' tool which allows you to configure and show
information about wireless networking.
.
In the future iw will become the canonical command line tool for wireless
configuration and iwconfig/wireless-tools will no longer be required. See
/usr/share/doc/iw/README.Debian for a more detailed overview of iw.
Homepage: http://wireless.kernel.org/en/users/Documentation/iw

原文地址:https://www.cnblogs.com/mayidudu/p/5841271.html