apt-get clean (clean apt cache for smaller docker image)
apt-get clean
apt-get autoremove
rm -rf /var/lib/apt/lists/*
=========================================
https://linuxhint.com/why_apt_get_clean/
/var/lib/apt/lists/
Storage area for state information for each package resource
specified in sources.list(5) Configuration Item: Dir::State::Lists.
/var/lib/apt/lists/partial/
Storage area for state information in transit. Configuration Item:
Dir::State::Lists (partial will be implicitly appended)
du –sh /var/cache/apt/archives^ this command check apt cache file size
use no install recommendsapt-get install --no-install-recommends something
留言
發佈留言