Is the "ESSENTIAL" attribute really appropriate?
Gabr-F opened this issue · 0 comments
Problem description
Hello.
In a misguided attempt to fix a problem I tried installing glibc-repo (through termux's normal pkg command).
I later ran pkg upgrade
and it told me to install a slew of *-glibc packages.
I unfortunately accepted to do so, and found my device's storage full (yes, I had little free space).
That was my fault, but when then I tried uninstalling those packages, I found myself entrenched in "Removing essential system-critical packages is not permitted" apt errors.
After a while, I found out the apt --allow-remove-essential
flag, I recovered the list of glibc packages from apt's logs, and after a safety backup I managed to uninstall them all.
First of all, this aspect should probably be described in the glibc-packages documentation.
Second, is it really appropriate to set TERMUX_PKG_ESSENTIAL=true to so many packages (15), or to any at all?
Or it was maybe only included by accident when making their installation scripts?
Finally, I did not actually break anything by forcing their uninstallation, right?
System information
termux-info:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=18079
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64