From 34817394df0b979409decbda1fc359a7186029dc Mon Sep 17 00:00:00 2001 From: Ruledo Date: Thu, 27 Feb 2025 04:26:17 -0800 Subject: [PATCH] Optimize APT for performance This has a very noticeable performance boost on the Building dependency tree portion of APT --- environment-setup/femtofox.chroot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/environment-setup/femtofox.chroot b/environment-setup/femtofox.chroot index 73d2b87..47af490 100644 --- a/environment-setup/femtofox.chroot +++ b/environment-setup/femtofox.chroot @@ -85,6 +85,12 @@ systemctl disable sound.target systemctl disable veritysetup.target systemctl disable systemd-pstore.service +echo "Optimzing APT..." +echo 'APT::Cache-Start 25165824;' | sudo tee /etc/apt/apt.conf.d/99lowmem +echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99disable-translations +echo 'APT::Install-Recommends "false"; APT::Install-Suggests "false";' | sudo tee /etc/apt/apt.conf.d/99norecommends +sudo dpkg --clear-avail + echo "Adding femto and pico users/groups..." groupmod -n femto pico usermod -l femto pico