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