Compile and Install the opkg Client

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

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:

  1. 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
  2. Download and extract the source code of the latest stable release of the opkg client:

    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
    
  3. 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
    
  4. Run the configuration script, making sure to add --enable-gpg and --enable-curl to support signature verification and HTTPS authentication:

    ./configure --with-static-libopkg --disable-shared --enable-gpg --enable-curl --prefix=/usr/local --sysconfdir=/etc
  5. Compile and install the client:

    make && sudo make install
  6. If needed, manually create the client configuration file:

    mkdir -p /etc/opkg && touch /etc/opkg/opkg.conf

Next steps: