I usually use opkg to update remove list-upgradable upgrade. I use LuCI/Software just to browse the packages, see the size of them, and the remaining free space.
But when I ask How to remove unused dependencies from LEDE? and ask for anyone to explain the difference between
--force-removal-of-dependent-packages Remove package and all dependencies
and
--autoremove Remove packages that were installed automatically to satisfy dependencies
and if any of them or another option, or another package manager does something like in Ubuntu does the
apt-get autoremove
after reading the opkg help, I could explain to my self that
Remove packages that were installed automatically to satisfy dependencies
is about the packages that where installed automatically when I installed some other packages, not about the system packages!
So believing that
opkg remove --autoremove '*'
will remove unused dependencies, I get this:
root@LEDE:~# opkg remove --autoremove '*'
Removing package kmod-usb-storage from root...
kmod-scsi-core was autoinstalled and is now orphaned, removing.
Removing package kmod-scsi-core from root...
Refusing to remove essential package libc.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Removing package opkg from root...
Not deleting modified conffile /etc/opkg/customfeeds.conf.
Not deleting modified conffile /etc/opkg.conf.
Refusing to remove essential package libpthread.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Refusing to remove essential package busybox.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Removing package odhcpd from root...
Removing package nano from root...
libncurses was autoinstalled and is now orphaned, removing.
Removing package libncurses from root...
terminfo was autoinstalled and is now orphaned, removing.
Removing package terminfo from root...
Removing package kmod-usb-dwc2 from root...
Removing package swconfig from root...
Removing package base-files from root...
Not deleting modified conffile /etc/shells.
Not deleting modified conffile /etc/protocols.
Not deleting modified conffile /etc/sysctl.conf.
Not deleting modified conffile /etc/iproute2/rt_protos.
Not deleting modified conffile /etc/shadow.
Not deleting modified conffile /etc/sysctl.d/local.conf.
Not deleting modified conffile /etc/rc.local.
Not deleting modified conffile /etc/services.
Not deleting modified conffile /etc/sysupgrade.conf.
Not deleting modified conffile /etc/group.
Not deleting modified conffile /etc/hosts.
Not deleting modified conffile /etc/iproute2/rt_tables.
Not deleting modified conffile /etc/inittab.
Not deleting modified conffile /etc/profile.
Not deleting modified conffile /etc/passwd.
netifd was autoinstalled and is now orphaned, removing.
Removing package netifd from root...
procd was autoinstalled and is now orphaned, removing.
Removing package procd from root...
procd-nand was autoinstalled and is now orphaned, removing.
Removing package procd-nand from root...
usign was autoinstalled and is now orphaned, removing.
Removing package usign from root...
lede-keyring was autoinstalled and is now orphaned, removing.
Removing package lede-keyring from root...
fstools was autoinstalled and is now orphaned, removing.
Removing package fstools from root...
ubi-utils was autoinstalled and is now orphaned, removing.
Removing package ubi-utils from root...
fwtool was autoinstalled and is now orphaned, removing.
Removing package fwtool from root...
Removing package ddns-scripts from root...
Not deleting modified conffile /etc/config/ddns.
Removing package dnsmasq from root...
Not deleting modified conffile /etc/config/dhcp.
Removing package kmod-ledtrig-heartbeat from root...
Removing package block-mount from root...
ubox was autoinstalled and is now orphaned, removing.
Removing package ubox from root...
ubus was autoinstalled and is now orphaned, removing.
Removing package ubus from root...
ubusd was autoinstalled and is now orphaned, removing.
Removing package ubusd from root...
Removing package kmod-ltq-atm-ar9 from root...
br2684ctl was autoinstalled and is now orphaned, removing.
Removing package br2684ctl from root...
Removing package odhcp6c from root...
Removing package uclient-fetch from root...
Removing package libuclient from root...
Removing package kmod-ath9k from root...
kmod-ath9k-common was autoinstalled and is now orphaned, removing.
Removing package kmod-ath9k-common from root...
kmod-ath was autoinstalled and is now orphaned, removing.
Removing package kmod-ath from root...
kmod-mac80211 was autoinstalled and is now orphaned, removing.
Removing package kmod-mac80211 from root...
kmod-cfg80211 was autoinstalled and is now orphaned, removing.
Removing package kmod-cfg80211 from root...
iw was autoinstalled and is now orphaned, removing.
Removing package iw from root...
Removing package uci from root...
Removing package wpad-mini from root...
Removing package dropbear from root...
Not deleting modified conffile /etc/dropbear/dropbear_rsa_host_key.
Not deleting modified conffile /etc/config/dropbear.
Removing package radicale-py3 from root...
python3-logging was autoinstalled and is now orphaned, removing.
Removing package python3-logging from root...
python3-openssl was autoinstalled and is now orphaned, removing.
Removing package python3-openssl from root...
libopenssl was autoinstalled and is now orphaned, removing.
Removing package libopenssl from root...
python3-xml was autoinstalled and is now orphaned, removing.
Removing package python3-xml from root...
python3-codecs was autoinstalled and is now orphaned, removing.
Removing package python3-codecs from root...
python3-email was autoinstalled and is now orphaned, removing.
Removing package python3-email from root...
python3-light was autoinstalled and is now orphaned, removing.
Removing package python3-light from root...
python3-base was autoinstalled and is now orphaned, removing.
Removing package python3-base from root...
zlib was autoinstalled and is now orphaned, removing.
Removing package zlib from root...
libffi was autoinstalled and is now orphaned, removing.
Removing package libffi from root...
libbz2 was autoinstalled and is now orphaned, removing.
Removing package libbz2 from root...
Refusing to remove essential package libstdcpp.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Removing package mtd from root...
Removing package kmod-owl-loader from root...
Refusing to remove essential package libgcc.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Removing package mjpg-streamer from root...
libjpeg was autoinstalled and is now orphaned, removing.
Removing package libjpeg from root...
Removing package ppp from root...
Removing package kmod-leds-gpio from root...
Removing package kmod-gpio-button-hotplug from root...
Removing package logd from root...
Removing package kmod-ltq-deu-ar9 from root...
kmod-crypto-manager was autoinstalled and is now orphaned, removing.
Removing package kmod-crypto-manager from root...
kmod-crypto-aead was autoinstalled and is now orphaned, removing.
Removing package kmod-crypto-aead from root...
kmod-crypto-null was autoinstalled and is now orphaned, removing.
Removing package kmod-crypto-null from root...
kmod-crypto-hash was autoinstalled and is now orphaned, removing.
Removing package kmod-crypto-hash from root...
Refusing to remove essential package librt.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
Removing package kmod-fs-f2fs from root...
Removing package slide-switch from root...
jsonfilter was autoinstalled and is now orphaned, removing.
Removing package jsonfilter from root...
Removing package ip6tables from root...
Removing package luci from root...
Removing package kmod-usb-ledtrig-usbport from root...
kmod-usb-core was autoinstalled and is now orphaned, removing.
Removing package kmod-usb-core from root...
kmod-nls-base was autoinstalled and is now orphaned, removing.
Removing package kmod-nls-base from root...
Removing package ltq-adsl-app from root...
Removing package uhttpd-mod-ubus from root...
Removing package hostapd-common from root...
Removing package qos-scripts from root...
tc was autoinstalled and is now orphaned, removing.
Removing package tc from root...
kmod-sched-connmark was autoinstalled and is now orphaned, removing.
Removing package kmod-sched-connmark from root...
kmod-sched-core was autoinstalled and is now orphaned, removing.
Removing package kmod-sched-core from root...
kmod-ifb was autoinstalled and is now orphaned, removing.
Removing package kmod-ifb from root...
iptables-mod-ipopt was autoinstalled and is now orphaned, removing.
Removing package iptables-mod-ipopt from root...
kmod-ipt-ipopt was autoinstalled and is now orphaned, removing.
Removing package kmod-ipt-ipopt from root...
iptables-mod-conntrack-extra was autoinstalled and is now orphaned, removing.
Removing package iptables-mod-conntrack-extra from root...
kmod-ipt-conntrack-extra was autoinstalled and is now orphaned, removing.
Removing package kmod-ipt-conntrack-extra from root...
Removing package ppp-mod-pppoa from root...
linux-atm was autoinstalled and is now orphaned, removing.
Removing package linux-atm from root...
kmod-pppoa was autoinstalled and is now orphaned, removing.
Removing package kmod-pppoa from root...
kmod-atm was autoinstalled and is now orphaned, removing.
Removing package kmod-atm from root...
Removing package kmod-ltq-adsl-ar9-fw-a from root...
Removing package ppp-mod-pppoe from root...
Removing package kmod-ledtrig-netdev from root...
^CInterrupted. Writing out status database.
root@LEDE:~#
[ free mkswap sort
[[ fsync mktemp start-stop-daemon
ash fw3 mount strings
awk grep mv switch_root
basename gunzip nc sync
brctl gzip netmsg sysctl
bunzip2 halt netstat tail
busybox head nice tar
bzcat hexdump nslookup tee
cat hwclock ntpd test
chgrp id ntpd-hotplug time
chmod ifconfig passwd top
chown ip pgrep touch
chroot iptables pidof tr
clear iptables-restore ping traceroute
cmp iptables-save ping6 traceroute6
cp jshn pivot_root true
crond kill poweroff udhcpc
crontab killall printf uhttpd
cut ldd ps umount
date less pwd uname
dd ln readlink uniq
df lock reboot uptime
dirname logger reset vi
dmesg login rm wc
du ls rmdir which
echo lua route xargs
egrep luci-bwc rpcd xtables-multi
env luci-reload sed yes
expr md5sum seq zcat
false mkdir sh
fgrep mkfifo sha256sum
find mknod sleep
root@LEDE:~# opkg
-ash: opkg: not found
root@LEDE:~#
Now I have a router (with Internet connection for now) that I don't dare to reboot, without opkg and without the knowledge how to repair it.
I don't care about the specific LEDE install. I just want to be able to flash firmware again, because in the LuCI GUI I see this:
Anyone with any useful idea?
OK, I won't put my cat to cry if my Netgear DGN3500 becomes a brick, I have 5 more modem/routers, but this is the only LEDE supported.
