While I was testing a GitHub CI/CD action (workflow), I needed to enable the EPEL repository for package dependencies in a Rocky Linux 9 container.
However when I tried to enable the CRB (Code Ready Builder) repository, which is a requirement to enable EPEL on Rocky9, the CI/CD job failed:
The screenshot above shows, that the step "Enable EPEL" failed with an error:
dnf config-manager --set-enabled crb
No such command: config-manager. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"
The step "Enable EPEL" contains the following run definition within .github/workflows/rockylinux9.yaml:
[...]
steps:
- uses: actions/checkout@v1
- name: Enable EPEL
run: |
dnf config-manager --set-enabled crb
dnf install -y epel-release
[...]
It turns out that the Rocky Linux 9 container image does not contain the config-manager plugin for the dnf command/package manager - this plugin needs to be installed first:
steps:
- uses: actions/checkout@v1
- name: Enable EPEL
run: |
dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb
dnf install -y epel-release
After this change back into the repo, the GitHub action workflow was happy again and enabled EPEL correctly:
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder