apt install package version code example
Example 1: check installed packages apt-get
apt list --installed
Example 2: apt install package version
apt-get install <package name>=<version>
apt list --installed
apt-get install <package name>=<version>