Blog

03/06/2019

Debian / Ubuntu: Find Information ( Description ) About Installed Packages



I‘m looking for equivalent of yum info httpd command under Debian Linux. How do I display information about the installed packages on the command line under Debian or Ubuntu Linux? How do I see the description of a package under Debian or Ubuntu Linux using command line options?

The easiest way to get this information is to use apt-cache or dpkg command to display details about given package-name on the command line. You will see the following information:

=> Package name.
=> Maintainer name and email.
=> Architecture.
=> Source name.
=> Package version.
=> Package Dependencies.
=> Size.
=> Description.

The syntax is:

dpkg --print-avail packageNameHere

OR

apt-cache show packageNameHere

In this example, show the information of a package called nginx, run:

dpkg --print-avail nginx

OR

apt-cache show nginx

Sample outputs:

Package: nginx
Priority: optional
Section: httpd
Installed-Size: 856
Maintainer: Jose Parrella <bureado@debian.org>
Architecture: amd64
Version: 0.7.67-3+squeeze2
Provides: httpd
Depends: lsb-base (>= 3.2-14), libc6 (>= 2.4), libgeoip1 (>= 1.4.7~beta6+dfsg), libpcre3 (>= 7.7), libssl0.9.8 (>= 0.9.8m-1), zlib1g (>= 1:1.1.4)
Size: 356178
Description: small, but very powerful and efficient web server and mail proxy
 Nginx (engine x) is a web server created by Igor Sysoev and kindly provided to
 the open-source community. This server can be used as standalone HTTP server
 and as a reverse proxy server before some Apache or another big server to
 reduce load to backend servers by many concurrent HTTP-sessions.
 .
 It can also act as a POP3/IMAP mail proxy with SSL and TLS SNI support.
Homepage: http://nginx.net

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...