With apt-get, you can specify which version of the package you would like to install. For example, you want to install version 5.4.8-1~bpo10+1 of linux-image-amd64 package. You have to run the command as follows:
apt-get -y install linux-image-amd64=5.4.8-1~bpo10+1