These devices should have enough space to install the packages we need. Remove all packages you have installed to add functionality, as they are only wasting space now. After you make the extroot you will have all space you need.
But, how to do that? opkg list-installed isn't what I need, because it lists all installed packages, not just the ones I have installed. Neither is opkg list-installed | cut -d- -f1 | opkg status | grep -B 3 "user installed", because it still lists more "user installed" packages than I really installed.
opkg list-installed is the correct command...what are you trying to accomplish???
WHAT!?!?!?
If you have an image from the LEDE site that needs packages uninstalled to make more space, you will have to create a custom image for your needs. Uninstalling included packages doesn't free space.
opkg list-installed is the correct command…what are you trying to accomplish???
opkg list-installed lists busybox and opkg as installed by me. I have not installed opkg using opkg! I remember installing gparted, for example, so I removed it, but there are 125 packages on the result, as I could check with opkg list-installed | grep "." -c.
If you have an image from the LEDE site that needs packages uninstalled to make more space, you will have to create a custom image for your needs. Uninstalling included packages doesn’t free space.
I don't want to remove packages already present on the distro, just the ones I installed after the distro was installed. So, I don't want a smaller LEDE package, but that my LEDE, that already had some packages installed by me, have those packages removed, to free up space on the overlay partition.
If all the stuff you need to install to get extroot working still fits into your flash, then there's no need to remove anything you installed after flashing.
There is section close to tha top of the page that describes how to list user installed packages.
#!/bin/ash
echo >&2 User-installed packages are the following:
sed -ne '/^Package:[[:blank:]]*/ {
s///
h
}
/user installed/ {
g
p
}' /usr/lib/opkg/status
Do opkg list > current-opkg-list.txt.
Backup your present install and then do fresh install and immediately opkg list > fresh-opkg-list.txt.
The difference will give you some info but not necessarily reveal which packages were installed as dependencies.