How to find out Applications (Postfix, Memcached, Varnish, Apache) version in Linux

In this tutorial, we will show you how to find out versions of the most used application in Linux.

Basically, to check the version of application or program installed in Linux, you should use common options such as -v, -V or –version depending on the program.

But some of the applications will not provide version info by using -v, -V or –version. Here, I am providing a solution to check the version of those applications which are not giving version info in a standard way.

1. Check Memcached Version

Memcached will not give you version info by using -v, here you need to use below options to check the version of the Memcached application.

Read Also :

$ dpkg -l | grep memcache

ii  libmemcached-tools             1.0.18-4 amd64         Commandline tools for talking to memcached via libmemcached

ii  libmemcached11:amd64           1.0.18-4 amd64         C and C++ client library to the memcached server

ii  libmemcachedutil2:amd64        1.0.18-4 amd64         library implementing connection pooling for libmemcached

ii  memcached                      1.4.21-1.1+deb8u1 amd64  high-performance memory object caching system

ii  php5-memcache                  3.0.8-5 amd64        memcache extension module for PHP5

ii  php5-memcached                 2.2.0-2 amd64        memcached extension module for PHP5, uses libmemcached

$ memcached -i

memcached 1.4.21
$ telnet localhost 11211

type: version

VERSION 1.4.21

 2. Check Postfix Version

Postfix will also not provide version using these well-known options, it will be a challenge for new users who want to know the version of postfix installed on the system.

$ postconf -d mail_version

The -d flag shows the default parameter settings in /etc/postfix/ file instead of other settings and mail_version variable displays the store’s package version.

Read Also:

Integration of SquirrelMail with postfix server on Linux
Steps To Install Postfix Server on Linux
Configuration of Amazon SES Service with Postfix

 3. Check Versions using -v, -V or –version

 Below are some applications who’s version would be check with -v, -V or –version.

$ varnishd -V

varnishd (varnish-4.0.3 revision b8c4a34)

Copyright (c) 2006 Verdens Gang AS

Copyright (c) 2006-2014 Varnish Software AS
Read Also:

Faster WordPress site with Varnish Cache
$ apache2 -v

Server version: Apache/2.4.10 (Debian)

Server built:   Sep 15 2016 20:44:43
Read Also:

Compile Apache latest version 2.4.33 on Centos 7 from source code
$ curl -V

curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3

Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp

$ bash --version

GNU bash, version 4.3.30(1)-release (x86_64-pc-Linux-gnu)

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <>

This is free software; you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

I hope you like the article if you find any difficulties then please do comment your queries or problem via the comment section, till then stay tuned to for more such valuable articles.

Leave a Reply

Your email address will not be published. Required fields are marked *