Jump to content

[Armbian build PR] - remove apt cache in the rootfs


RSS Bot

Recommended Posts

Description

Apt cache is only useful in build time. Users usually don't need cache for installed packages. Removing them will save space and make images smaller.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • [x] Build with command ./compile.sh COMPRESS_OUTPUTIMAGE=sha,gpg,xz DEB_COMPRESS=xz DOWNLOAD_MIRROR=china BOARD=rock-5b BRANCH=legacy GITHUB_MIRROR=ghproxy RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=yes KERNEL_CONFIGURE=no DESKTOP_ENVIRONMENT=gnome DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED="3dsupport browsers chat desktop_tools editors email internet multimedia office programming remote_desktop", saving about 300MB space.

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines