Prerequisite: Before connecting opkg to Artifactory, you must have an existing Opkg repository in Artifactory. For more information, see Create an Opkg Repository.
Note
This task includes universal commands for Unix-like systems. Commands for your environment may vary. Treat this workflow as a template, and use relevant commands that serve the specified purpose.
To compile and install the opkg client:
Install the compilation dependencies using one of the following commands based on your environment:
Debian/Ubuntu using APT:
sudo apt-get update && sudo apt-get install -y gcc libtool autoconf pkg-config libarchive-dev libcurl4-gnutls-dev libssl-dev libgpgme-dev
Red Hat/Fedora using DNF:
sudo dnf install -y gcc libtool autoconf pkgconf libarchive-devel libcurl-devel openssl-devel gpgme-devel
macOS using Homebrew:
brew install autoconf automake libtool pkg-config libarchive curl openssl gpgme
Download and extract the source code of the latest stable release of the
opkgclient:wget https://downloads.yoctoproject.org/releases/opkg/opkg-<VERSION>.tar.gz && tar -zxvf opkg-<VERSION>.tar.gz
Where:
<VERSION>: The version number of the latest stable release
For example:
wget https://downloads.yoctoproject.org/releases/opkg/opkg-0.7.0.tar.gz && tar -zxvf opkg-0.7.0.tar.gz
Navigate to the extracted directory:
cd opkg-<VERSION>
Where:
<VERSION>: The version number of the latest stable release
For example:
cd opkg-0.7.0
Run the configuration script, making sure to add
--enable-gpgand--enable-curlto support signature verification and HTTPS authentication:./configure --with-static-libopkg --disable-shared --enable-gpg --enable-curl --prefix=/usr/local --sysconfdir=/etc
Compile and install the client:
make && sudo make install
If needed, manually create the client configuration file:
mkdir -p /etc/opkg && touch /etc/opkg/opkg.conf
Next steps: