Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save levush/baeeecc4c44d984f4e491b13ec2c911c to your computer and use it in GitHub Desktop.
Save levush/baeeecc4c44d984f4e491b13ec2c911c to your computer and use it in GitHub Desktop.
List all user-installed packages on OpenWrt / LEDE
#!/bin/sh
FLASH_TIME=$(opkg info busybox | grep '^Installed-Time: ')
for i in $(opkg list-installed | cut -d' ' -f1)
do
if [ "$(opkg info $i | grep '^Installed-Time: ')" != "$FLASH_TIME" ]
then
echo $i
fi
done
@levush
Copy link
Author

levush commented Apr 23, 2018

very good script that helps to manage openWRT installations, so one can compare installed packages
and say
opkg install
with the results of the script at another OpenWRT box by copy and paste.

I "installed" the script as /usr/bin/installed.sh with 755 rights
The script is soo useful that it should become part of OpenWRT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment