Forked from alfredkrohmer/list-user-installed-packages.sh
Created
February 8, 2021 15:26
-
-
Save harryyoud/5674a544ccd1dcc422f146cf402c2827 to your computer and use it in GitHub Desktop.
List all user-installed packages on OpenWrt / LEDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment