ubuntu check package version code example
Example 1: ubuntu see if package is installed
dpkg -l {package_name}
Example 2: linux how to check version of package
$ apt list pkg-name
//show all possible versions on repository
$ apt list pkg-name -a