2 ms·
By default the upgrade can ask a lot of questions, but you can kinda skip it by just telling it to keep old config files then merge them with the new ones at th
by ilyt 3y ago
By default the upgrade can ask a lot of questions, but you can kinda skip it by just telling it to keep old config files then merge them with the new ones at the end:
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' dist-upgrade
upgrade done. All of configs you changed are not touched and the new version is in <name>. dpkg-dist file
find /etc -name '*.dpkg-dist
to show "a config that package would use if you didn't change it". diff it with your config and add any required changes. Done.
> 10. Check on anything left: apt upgrade
11. apt autoremove