Ubuntu和LinuxMint是用于台式机最流行的Linux版本。如果你也是Ubuntu或LinuxMint或Debian的操作系统的用户,并想知道安装的软件包的详细信息或版本,本文将会对你有帮助。我们可以用dpkg的命令来了解所有包的详细信息。
$ dpkg -s <package_name>
例如,如果你想知道openssh-server软件包或其他信息,请使用以下命令版本。
$ dpkg -s openssh-server
Package: openssh-server
Status: install ok installed
Multi-Arch: foreign
Priority: optional
Section: net
Installed-Size: 821
Maintainer: Colin Watson
Architecture: i386
Source: openssh
Version: 1:5.9p1-5ubuntu1.4
Replaces: openssh-client (= 2.15), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.10+dfsg~), libkrb5-3 (>= 1.6.dfsg.2), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.0), libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4), debconf (>= 1.2.0) | debconf-2.0, openssh-client (= 1:5.9p1-5ubuntu1.4), upstart-job, libpam-runtime (>= 0.76-14), libpam-modules (>= 0.72-9), adduser (>= 3.9), dpkg (>= 1.9.0), lsb-base (>= 3.2-13), procps
Recommends: xauth, ssh-import-id
Suggests: ssh-askpass, rssh, molly-guard, openssh-blacklist, openssh-blacklist-extra, ufw, monkeysphere
Conflicts: rsh-client (