Created
February 11, 2017 13:39
-
-
Save alfredkrohmer/8d4c2a5ab62e690772f3d9de5ad2d978 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 |
@tojestzart
These are the droids commands you are looking for:
# Install the owut package if it is not installed already (needs openwrt v24.10 or greater)
[ ! -f "$(which owut)" ] && [ -f "$(which apk)" ] && apk update&&apk add owut
[ ! -f "$(which owut)" ] && [ -f "$(which opkg)" ] && opkg update&&opkg install owut
# show packages that are installed on the device but are not in the default sysupgrade firmware
# (ie user installed or added in custom fw)
owut list
# show all installed packages (without listing dependencies)
owut blob | grep ' '|cut -d'"' -f2
# This also shows all apps without dependencies (obviously openwrt >=25)
# The file was generated by running apk update
cat /etc/apk/world
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
now for apk equivalent?