Comments 5 Posted In Red Hat Container Development Kit Adding jq package to Univeral Base Image? Latest response 2020-02-27T14:50:11+00:00 Is it possible to perform a yum install of the jq utility using the Dockerfile RUN command when building upon the RedHat Universal Base Image? JC Started 2019-05-13T21:58:29+00:00 by James Carmichael Newbie 5 points Log in to join the conversation Responses Sort By Oldest Sort By Newest Active Contributor 290 points 14 May 2019 7:08 PM Christiaan van Aken Just add this to your dockerfile (when the package is in the default repos): RUN yum install jq -y That will do it. IK Newbie 5 points 27 January 2020 9:56 PM Ilya Kislenko doesn't work for minimal and also doesn't work for regular one docker run -ti --rm registry.access.redhat.com/ubi8/ubi-minimal:8.1 microdnf install jq (process:1): librhsm-WARNING **: 21:54:39.172: Found 0 entitlement certificates (process:1): librhsm-WARNING **: 21:54:39.173: Found 0 entitlement certificates (process:1): libdnf-WARNING **: 21:54:39.174: Loading "/etc/dnf/dnf.conf": IniParser: Can't open file Downloading metadata... Downloading metadata... Downloading metadata... error: No package matches 'jq' docker run -ti --rm registry.access.redhat.com/ubi8/ubi:8.1 yum install jq -y Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Red Hat Universal Base Image 8 (RPMs) - BaseOS 1.6 MB/s | 760 kB 00:00 Red Hat Universal Base Image 8 (RPMs) - AppStream 4.9 MB/s | 3.1 MB 00:00 Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder 28 kB/s | 9.1 kB 00:00 No match for argument: jq Error: Unable to find a match: jq Pro 647 points 27 January 2020 10:05 PM Amel Hodzic Generally, you should configure your redhat subscription for the image. However, since the jq package is found in the epel repo, you might need to configure that first. Then, as Christiaan pointed out, install the package. JA Active Contributor 191 points 5 February 2020 5:35 PM Juan Luis Alarcón It's available in rhel-7-server-ose-4.3-rpms repo from Red Hat, no need to use epel here. Also in rhel-7-server-ose-4.2-rpms and rhel-7-server-ose-4.1-rpms repos. Newbie 5 points 27 February 2020 2:50 PM Benjamin Porter It's presence in rhel-7-* doesn't much help for UBI images. If you want to build on a redistributable base (like I do) a different solution is needed. I just used wget in my Dockerfile to pull down a static binary from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 . Unfortunately updates will be manual with this method.