Which packages can I safely remove to save space?

Issue: Flash space is scarce on devices with only 4MB flash, and I don't have enough space left to install a package I need. In order to to save some space: Which of the normally preinstalled packages can I safely remove when building an image?

Solution: You can save some space while compiling your own image (e.g. with the imagebuilder) by removing packages that are not needed for your usecase. In order to completely remove IPv6 support and related packages you also need to ask the imagebuilder to do so by also passing this option to the make command: “CONFIG_IPV6=n”.
See also → Build image for devices with only 4MB flash.
See also → Saving firmware space.

Action Packages
remove pppoe -ppp -ppp-mod-pppoe
remove IPv6 -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables
remove dhcp server -odhcpd
remove iptables -iptables
remove opkg -opkg
add LuCI minimal uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap
add zram zram-swap
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2019/09/12 00:49
  • by vgaetera