#!/bin/sh
apt install -y apt-show-versions
apt-show-versions -i
apt install -y --allow-downgrades $(apt-show-versions |grep -v -e "uptodate" -e "not installed"|awk '/newer than version/{print $1"=257.8-1~deb13u1"}')
apt-mark -y minimize-manual
