Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find version of a software installed in ubuntu

Is there any universal command that I can use in the console, for example how to find the mysql version ?

like image 270
hemal12 Avatar asked Feb 06 '13 11:02

hemal12


1 Answers

You can use dpkg to get that info:

dpkg -l mysql-server | grep -E "^ii" | tr -s ' ' | cut -d' ' -f3

This will give you the installed version of the mysql-server package.

If a package is not installed, it will print out "No packages found matching mysql-server." instead.

like image 113
Carsten Avatar answered Sep 21 '22 18:09

Carsten