I'm trying to install a package to my OpenWrt SDK. To do that you have to use OPKG package manager by typing:
opkg update
opkg install <package>
However, in my case, OPKG is not installed and as a result I can't proceed.
Could anybody tell me how can I install it? Thank you.
I'm using Kubuntu btw:
Linux ghanem-VGN-BZ31XT 3.16.0-34-generic #47-Ubuntu SMP Fri Apr 10 18:02:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Opkg doesn't really have a 'release' you can just install - that is because it needs native libraries of your OS and it can be used in a very wide array of OSs.
Whenever I have to play with it on Ubuntu I have these 3 'one-liners' to install it, if you try and modify it to match your OS I'm sure it'll work for you:
wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.1.tar.gz
tar -zxvf opkg-0.3.1.tar.gz
apt-get update && apt-get install -y gcc libtool autoconf pkg-config libarchive13 libarchive-dev libcurl3 libcurl4-gnutls-dev libssl-dev libgpgme11-dev libtool-bin
enable-curl
flag out to use it with the default wget):
* (pre-compilation) if there's no configure script (a file called configure) you need to call ./autogen.sh
first
* ./configure --with-static-libopkg --disable-shared --enable-gpg --enable-curl --prefix=/usr && make && sudo make install
After make install
is done you will have opkg installed - remember to add opkg.conf (example here) under /etc/opkg