Skip to content

Instantly share code, notes, and snippets.

@red-avtovo
Created October 24, 2020 22:15
Show Gist options
  • Save red-avtovo/bd5010f7340672f20edbdcecd57363f3 to your computer and use it in GitHub Desktop.
Save red-avtovo/bd5010f7340672f20edbdcecd57363f3 to your computer and use it in GitHub Desktop.
The only working so far way to downgrade debian packages
#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