• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

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

How do I check the version of a program in Linux? In command line interface.
0
DBDevOne
Asked:
DBDevOne
1 Solution
 
net_sec_guruCommented:
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.
0
 
SunjithCommented:
If -v does not work, try -V or --version
0
 
DBDevOneAuthor Commented:
Thank you!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now