OpenWrt Forum Archive

Topic: How to install multiple packages at once from txt file

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

i was wondering if it is possible to instaal multiple packages at once from a txt file i create ?

Someting like

opkg install << mypackagelist.txt

What about this?

opkg install $(cat mypackagelist.txt)
root@OpenWrt:~# cat mypackagelist.txt
luci-app-firewall
nano
screen
mc
root@OpenWrt:~# for pkg in $(cat mypackagelist.txt); do opkg install $pkg; done

How about:

opkg install package_1.ipk package_2.ipk ... package_n.ipk
mazilo wrote:

How about:

The question from the thread starter was: ...from a text file...

(Last edited by written_direcon on 1 Feb 2011, 20:39)

cat mypackagelist.txt | xargs opkg install

There is no option -a in OpenWrt's xargs or it will be:

xargs -a mypackagelist.txt opkg install

Also see:

xargs --help

The discussion might have continued from here.