Created
October 24, 2020 22:15
-
-
Save red-avtovo/bd5010f7340672f20edbdcecd57363f3 to your computer and use it in GitHub Desktop.
The only working so far way to downgrade debian packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FIND | |
apt-show-versions | grep newer | awk '{ print $1 }' | xargs -I {} apt-show-versions -a {} | grep $(lsb_release -sc) > repo_versions.log | |
#DOWNGRADE | |
cat repo_versions.log | awk '{ print $1 "=" $2 }' | xargs -I {} sudo DEBIAN_FRONTEND=noninteractive apt install --reinstall {} -y --allow-downgrades | |
#CHECK | |
apt-show-versions | grep newer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment