Re: How to get the version of any program?



Le Fri, 28 Jul 2006 01:36:25 +0800, Niu Xiao a écrit :

gniuxiao wrote:
I have to write a bash script function to check the version of any
program under various kinds of Linux dists.

Thanks.

Thank all of you. I finally solved this problem. Under Redhat, I use
rpm; under Debian, I use dpkg-query.

Nice, then it just happens that all of the answers were right
and only the question was wrong ;D)
.