coinboot icon indicating copy to clipboard operation
coinboot copied to clipboard

Evaluate using a custom dpkg configuration for dropping unnecessary files

Open frzb opened this issue 3 years ago • 0 comments

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

frzb avatar Jan 03 '21 13:01 frzb