YUM

Repository Tools

If a direct download is insufficient the following tools are known to function correctly in order to fetch packages from, or create internal mirrors of the Instana YUM repositories.

  • yumdownloader
  • reposync (from yum-utils)
  • artifactory

Configure Agent RPM Repository

Import Instana GPG Key: rpm --import https://packages.instana.io/Instana.gpg

To configure the repository, edit /etc/yum.repos.d/Instana-Agent.repo:

[instana-agent]
name=Instana Agent
baseurl=https://_:${INSTANA_AGENT_KEY}@packages.instana.io/agent/rpm/generic/x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.instana.io/Instana.gpg
sslverify=1

Note: Ensure that you have replaced ${INSTANA_AGENT_KEY} with your actual Instana agent key!

Then, update the package manager’s metadata cache: yum makecache fast.

Configure Product (On-Premises) RPM Repository

Import Instana GPG Key: rpm --import https://packages.instana.io/Instana.gpg

To configure the repository, edit /etc/yum.repos.d/Instana-Product.repo:

[instana-product]
name=Instana Product
baseurl=https://_:${INSTANA_AGENT_KEY}@packages.instana.io/release/product/rpm/generic/x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.instana.io/Instana.gpg
priority=5
sslverify=1

Note: Ensure that you have replaced ${INSTANA_AGENT_KEY} with your actual Instana agent key!

Then, update the package manager’s metadata cache: yum makecache fast.

Fetching Packages with yumdownloader

This will download the named package to the current directory:

  • Configure the package repository
  • Install yum-utils: yum install yum-utils
  • Download the package (example: Fetch agent package): yumdownloader instana-agent-dynamic

Mirroring YUM Repositories with reposync

  • Configure the package repository
  • Install yum-utils: yum install yum-utils
  • Sync remote instana-agent repository to current directory: reposync --repoid instana-agent (older releases of yum-utils used “—repo-id” instead)

You can now import the downloaded packages into your local repository or utilize the createrepo command to generate one from the downloaded packages.