I’m wondering how to protect a directory from being overwritten during package updates on Ubuntu 24.04. If I run a command like this, will it ensure that any files from the update are redirected to the sounds.divert directory, preventing the original directory from being automatically overwritten?
sudo dpkg-divert --add --local --divert /usr/share/asterisk/sounds.distrib /usr/share/asterisk/sounds
Ubuntu Version:
Ubuntu Server 24.04 LTS