| philip.zeyliger | 46be096 | 2025-06-14 17:51:15 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | # Skip installing package docs (makes the man-db trigger much faster) |
| 5 | # (I disabled `/doc` and `/info` too, just in case.) |
| 6 | sudo tee /etc/dpkg/dpkg.cfg.d/01_nodoc > /dev/null << 'EOF' |
| 7 | path-exclude /usr/share/doc/* |
| 8 | path-exclude /usr/share/man/* |
| 9 | path-exclude /usr/share/info/* |
| 10 | EOF |
| 11 | |
| Philip Zeyliger | 963ae4b | 2025-06-18 12:08:25 -0700 | [diff] [blame] | 12 | # Disable automatic man-db updates which can slow down apt operations |
| 13 | sudo debconf-set-selections <<< "man-db man-db/auto-update boolean false" |
| 14 | sudo rm -f /var/lib/man-db/auto-update |
| 15 | |
| 16 | echo "APT optimization configured - documentation installation disabled and man-db auto-update disabled" |