Let's say I have a package mypack
. It has a ton of dependencies, that have a ton of dependencies themselves. I want to install it in one step where also all its dependencies are automatically downgraded.
I have tried
apt-get --allow-downgrades --allow-change-held-packages install mypack
But it refuses to downgrade some installed packages.
If some other package or some of its dependencies conflicts with a dependency of mypack
it should remove the other package.
Is there an available solution or I have to write the script myself?
Update
I tried installing a specific version but in some cases it does not work.
apt-get --allow-downgrades --allow-change-held-packages install mypack=1.2.3