如何找到一个软件安装在ubuntu的版本 [英] How to find version of a software installed in ubuntu
本文介绍了如何找到一个软件安装在ubuntu的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有可以在控制台中使用的通用命令,例如如何查找mysql版本?
Is there any universal command that I can use in the console, for example how to find the mysql version ?
推荐答案
您可以使用 dpkg
获取该信息:
You can use dpkg
to get that info:
dpkg -l mysql-server | grep -E "^ii" | tr -s ' ' | cut -d' ' -f3
这将给你安装的版本 mysql-server
包。
This will give you the installed version of the mysql-server
package.
如果没有安装包,它将打印出没有找到匹配mysql-server的包。
If a package is not installed, it will print out "No packages found matching mysql-server." instead.
这篇关于如何找到一个软件安装在ubuntu的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文