Skip to content

Instantly share code, notes, and snippets.

@devster31
Forked from anonymous/etc-apt-apt.conf.d-02nocache
Last active October 9, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devster31/a2446542b006c04d3e06 to your computer and use it in GitHub Desktop.
Save devster31/a2446542b006c04d3e06 to your computer and use it in GitHub Desktop.
Customization for rpi minimal images
Dir::Cache {
srcpkgcache "";
pkgcache "";
}
# never use pdiffs. Current implementation is very slow on low-powered devices
Acquire::PDiffs "0";
# download up to 5 pdiffs:
#Acquire::PDiffs::FileLimit "5";
# from https://wiki.ubuntu.com/ReducingDiskFootprint
path-exclude /usr/share/doc/*
# we need to 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/*
# from https://wiki.ubuntu.com/ReducingDiskFootprint
path-exclude /usr/share/locale/*
path-include /usr/share/locale/en*
path-include /usr/share/locale/it*
find /usr/share/doc -depth -type f ! -name copyright|xargs rm
find /usr/share/doc -empty|xargs rmdir
rm -rf /usr/share/man /usr/share/groff /usr/share/info /usr/share/lintian /usr/share/linda /var/cache/man
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en' ! -name 'it*' ! -name 'locale.alias' |xargs rm -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment