I want to avoid the need to run update from within dselect after apt-get dist-upgrade by writing the lines Post-Invoke { "apt-cache dumpavail > /tmp/apt-chace"; "dpkg --update-avail /tmp/apt-cache"; "rm -v /tmp/apt-chace"; "mount -o remount,ro /usr"; };
in /etc/apt/apt.conf. Is that reasonable? Are there any issues of file locking, breaking the regular backups of the available and status files or other things that needs special care? How can I avoid the /tmp/apt-cache file? Is there a better way to handle this?