Short and sweet: Ubuntu + Opkg Docker image
Internet of wha?
If you’re dabbling with makerism, embedded software or the Internet of Things you may have come across the Opkg package manager.
Opkg is a fork of the abandoned ipkg which is a derivative of dpkg. Opkg archives and repository index are almost identical to Debian’s with only two main differences:
- Opkg files end with an .ipk suffix.
- Opkg files may be archived in either AR or TAR.GZ.
A world of PITA
The maintainers of Opkg don’t ship any pre-compiled binaries and although it’s based on Debian, installing the package manager on Ubuntu can be a PITA so here’s a recipe for you:
Installing the dependencies
Opkg is a needy bugger so the list of required dependencies to install is long:
noam@mandromeda:~$ sudo apt-get install -y gcc \ pkg-config \ libarchive13 \ libarchive-dev \ libcurl3 \ libcurl3-dev \ libgpgme11 \ libgpgme11-dev \ autogen \ autoconf \ make \ libtool \ curl
Fetching the sources
Opkg comes with a fancy pants
autoconf script to tailor the
configure file for us so before we do anything we must run:
After autconf successfully completes we can then carry on with the ol’ standard:
noam@mandromeda:~/opkg-src$ ./configure --with-static-libopkg --disable-shared \ && make \ && sudo make install