Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f7d0c137 authored by Robert Nelson's avatar Robert Nelson
Browse files

bare image: tweak apt.conf settings: 86M


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 2d29ae2d
No related merge requests found
...@@ -160,6 +160,16 @@ if [ "x${chroot_very_small_image}" = "xenable" ] ; then ...@@ -160,6 +160,16 @@ if [ "x${chroot_very_small_image}" = "xenable" ] ; then
sudo sh -c "echo \"path-exclude=/usr/share/doc/*\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes" sudo sh -c "echo \"path-exclude=/usr/share/doc/*\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
sudo sh -c "echo \"\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes" sudo sh -c "echo \"\" >> ${tempdir}/etc/dpkg/dpkg.cfg.d/excludes"
#apt: no local cache
sudo sh -c "echo \"Dir::Cache {\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache"
sudo sh -c "echo \" srcpkgcache \"\";\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache"
sudo sh -c "echo \" pkgcache \"\";\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache"
sudo sh -c "echo \"}\" >> ${tempdir}/etc/apt/apt.conf.d/02nocache"
#apt: /var/lib/apt/lists/, store compressed only
sudo sh -c "echo \"Acquire::GzipIndexes \"true\";\" >> ${tempdir}/etc/apt/apt.conf.d/02compress-indexes"
sudo sh -c "echo \"Acquire::CompressionTypes::Order:: \"gz\";\" >> ${tempdir}/etc/apt/apt.conf.d/02compress-indexes"
echo "Log: after locale/man purge" echo "Log: after locale/man purge"
report_size report_size
fi fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment