How to install opkg package manually
In general, you could just install a OpenWRT package by using:
opkg update
opkg install your_package_name
But for somecases, it may not work. Then you have to download the package and install it manually.
The package file look like thist: package_name.ipk
.
You install it by using: opkg install package_name.ipk
.
You use
wget http://downloadLink.ipk
to download it
But for some extreme case, it may still not work, in that case. You do what you do normally in other Linux System, extracting files from that package, then put those files directly into your file system.
For example, suppose you have a opkg package: your_package.ipk
You extract it by using tar zxpvf your_package.ipk -C target_folder
You’ll then get a file called data.tar.gz
, it’s still a compressed file, so you do the extracting again by using tar zxpvf data.tar.gz -C target_folder
Now you should see a bounch of files, you can put then directly into your root folder, I mean /
.
A general view of a .ipk package looks like this:
│ ├── etc
│ │ ├── config
│ │ │ └── v2ray
│ │ ├── firewall.v2ray
│ │ ├── init.d
│ │ │ └── v2ray
│ │ ├── uci-defaults
│ │ │ └── 40_luci-v2ray
│ │ └── v2ray
│ │ ├── chnroute.txt
│ │ ├── chnroute6.txt
│ │ ├── directlist.txt
│ │ ├── gfwlist.txt
│ │ ├── proxylist.txt
│ │ ├── srcdirectlist.txt
│ │ └── transport.json
│ ├── usr
│ │ ├── lib
│ │ │ └── lua
│ │ │ └── luci
│ │ │ └── controller
│ │ │ └── v2ray.lua
│ │ ├── libexec
│ │ │ └── rpcd
│ │ │ └── luci.v2ray
│ │ └── share
│ │ ├── luci
│ │ │ └── menu.d
│ │ │ └── luci-app-v2ray.json
│ │ └── rpcd
│ │ └── acl.d
│ │ └── luci-app-v2ray.json
│ └── www
│ └── luci-static
│ └── resources
│ ├── v2ray.js
│ └── view
│ └── v2ray
│ ├── about.js
│ ├── dns.js
│ ├── inbound.js
│ ├── include
│ │ └── custom.js
│ ├── main.js
│ ├── outbound.js
│ ├── policy.js
│ ├── reverse.js
│ ├── routing.js
│ ├── tools
│ │ ├── base64.js
│ │ └── converters.js
│ └── transparent-proxy.js
├── data.tar.gz
Then, run your new software by execute /usr/bin/v2ray