Solved

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

Posted on 2004-10-14
3
290 Views
Last Modified: 2013-11-13
How do I check the version of a program in Linux? In command line interface.
0
Comment
Question by:DBDevOne
3 Comments
 
LVL 4

Accepted Solution

by:
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.
0
 
LVL 2

Expert Comment

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

Author Comment

by:DBDevOne
ID: 12311449
Thank you!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now