Skip to content

Instantly share code, notes, and snippets.

@simonswine
Created October 18, 2017 20:54
Show Gist options
  • Save simonswine/4165bc042d2cb5fb54ebf096cb73d38c to your computer and use it in GitHub Desktop.
Save simonswine/4165bc042d2cb5fb54ebf096cb73d38c to your computer and use it in GitHub Desktop.
List installed packages after ROM was installed on OpenWRT/LEDE
# show pages installed since ROM
opkg list_installed | sort > /tmp/installed_now
opkg list_installed -o /rom | sort > /tmp/installed_rom
grep -Fxv -f /tmp/installed_rom /tmp/installed_now | tee /tmp/installed_diff
# echo installable list of packages
cat /tmp/installed_diff | cut -f 1 -d ' ' | xargs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment