582 B
582 B
tmpfs apt cache
Please Note: this will use 512M RAM for the tmpfs (it'll usually be smaller) and can cause apt automatic updates to fail. You'll need/want to watch your logs and automatic updates if using this setup.
The below commands will enable tmpfs (in memory filesystem) for /var/cache/apt
which has heavy disk write turnover due to automatic updates.
sudo -sHu root
rm -r /var/cache/apt/*
cat >> /etc/fstab <<EOF
tmpfs /var/cache/apt tmpfs size=512M,defaults,noatime,nodiratime 0 1
EOF
mount /var/cache/apt
df -h /var/cache/apt