4

I need to run a script in bash, and the only way to install bash package to OpenWrt that I have found now is "opkg install bash" , but I don't have Internet access for my router, for which I want to install the package. How can I find the off-line package then how can I install that on the router?

1 Answer 1

7

Check out the OPKG Package Manager documentation section on the install argument (under the heading "Package manipulation")

opkg can install package files from both remote and local locations, as in:

opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk
opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk

The latter is (I believe) what you want. This enables you to download the package file for bash on another host, put it on the local filesystem of the OpenWRT device (perhaps using ssh/scp over a direct ethernet link), and then opkg install /path/to/package.ipk, without having it need to connect to the Internet.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .