know package version ubuntu code example
Example: linux how to check version of package
$ apt list pkg-name
//show all possible versions on repository
$ apt list pkg-name -a
$ apt list pkg-name
//show all possible versions on repository
$ apt list pkg-name -a