How do I check the version of a program in Linux?

Posted on 2004-10-14
Last Modified: 2013-11-13
How do I check the version of a program in Linux? In command line interface.
Question by:DBDevOne
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

net_sec_guru earned 250 total points
ID: 12310493
I usually use two different methods:

<command to execute command> -v
ie - # nmap -v

or else I will query the rpm database for version:
rpm -qa |grep <program> (qa will show all programs installed so you need to grep for the one you want)
ie # rpm -q libc

Hope this helps!

And you can always "man" the program and check out how to check version number in there.

Expert Comment

ID: 12310711
If -v does not work, try -V or --version

Author Comment

ID: 12311449
Thank you!!

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question