Ubuntu and LinuxMint are the most popular Linux flavors used for the Desktop systems. If you are also a user of Ubuntu or LinuxMint or Debian operating system and want to know the installed package details or version, this article will be helpful for you. We can use the dpkg command to know details of all package.
dpkg -s <package_name>
For example, if you want to know the version of the openssh-server package or other details uses the following command.
Advertisement
dpkg -s openssh-server
Package: openssh-server Status: install ok installed Priority: optional Section: net Installed-Size: 883 Maintainer: Ubuntu DevelopersArchitecture: amd64 Multi-Arch: foreign Source: openssh Version: 1:7.2p2-4ubuntu2.8 Replaces: ssh, ssh-krb5 Provides: ssh-server Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.17), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.12.1+dfsg-2), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.2), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, init-system-helpers (>= 1.18~), lsb-base (>= 4.1+Debian11ubuntu7), openssh-client (= 1:7.2p2-4ubuntu2.8), libpam-runtime (>= 0.76-14), libpam-modules (>= 0.72-9), adduser (>= 3.9), dpkg (>= 1.9.0), procps, openssh-sftp-server Recommends: xauth, ncurses-term, ssh-import-id Suggests: ssh-askpass, rssh, molly-guard, ufw, monkeysphere Conflicts: sftp, ssh-socks, ssh2 Conffiles: /etc/default/ssh 500e3cf069fe9a7b9936108eb9d9c035 /etc/init.d/ssh aca247a51227a8f8b37a8c2a4a703571 /etc/init/ssh.conf 9e5ed011987e63f8035fb847170dfa3f /etc/network/if-up.d/openssh-server 27e8d7b929948969ba71bf04fe269b4d /etc/pam.d/sshd 8b4c7a12b031424b2a9946881da59812 /etc/ufw/applications.d/openssh-server 486b78d54b93cc9fdc950c1d52ff479e Description: secure shell (SSH) server, for secure access from remote machines This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group. . Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It can be used to provide applications with a secure communication channel. . This package provides the sshd server. . In some countries it may be illegal to use any encryption at all without a special permit. . sshd replaces the insecure rshd program, which is obsolete for most purposes. Homepage: http://www.openssh.com/ Original-Maintainer: Debian OpenSSH Maintainers