Forked from anonymous/etc-apt-apt.conf.d-02nocache
Last active
October 9, 2015 22:19
-
-
Save devster31/a2446542b006c04d3e06 to your computer and use it in GitHub Desktop.
Customization for rpi minimal images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir::Cache { | |
srcpkgcache ""; | |
pkgcache ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# never use pdiffs. Current implementation is very slow on low-powered devices | |
Acquire::PDiffs "0"; | |
# download up to 5 pdiffs: | |
#Acquire::PDiffs::FileLimit "5"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dpkg::Progress-Fancy "1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://wiki.ubuntu.com/ReducingDiskFootprint | |
path-exclude /usr/share/locale/* | |
path-include /usr/share/locale/en* | |
path-include /usr/share/locale/it* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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