coinboot
coinboot copied to clipboard
Evaluate using a custom dpkg configuration for dropping unnecessary files
By using a custom configuration for dpkg
we can control which files to drop during install of a package.
For example: /etc/dpkg/dpkg.cfg.d/01_coinboot
# block documentation
path-exclude /usr/share/doc/*
# keep copyright files for legal reasons
path-include /usr/share/doc/*/copyright
path-exclude /usr/share/man/*
path-exclude /usr/share/groff/*
path-exclude /usr/share/info/*
# lintian stuff is small, but really unnecessary
path-exclude /usr/share/lintian/*
path-exclude /usr/share/linda/*
# block non-us locales
path-exclude /usr/share/locale/*
path-include /usr/share/locale/en*
Inspired by: https://wiki.ubuntu.com/ReducingDiskFootprint#Drop_unnecessary_files