How To Install containers-common on Rocky Linux 8
Introduction
In this tutorial we learn how to install containers-common
on Rocky Linux 8.
What is containers-common
This package installs a default signature store configuration and a default policy under
/etc/containers/
.
We can use yum
or dnf
to install containers-common
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install containers-common.
Install containers-common on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install containers-common
using dnf
by running the following command:
sudo dnf -y install containers-common
Install containers-common on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install containers-common
using yum
by running the following command:
sudo yum -y install containers-common
How To Uninstall containers-common on Rocky Linux 8
To uninstall only the containers-common
package we can use the following command:
sudo dnf remove containers-common
containers-common Package Contents on Rocky Linux 8
/etc/containers
/etc/containers/certs.d
/etc/containers/containers.conf
/etc/containers/oci
/etc/containers/oci/hooks.d
/etc/containers/policy.json
/etc/containers/registries.conf
/etc/containers/registries.conf.d
/etc/containers/registries.conf.d/000-shortnames.conf
/etc/containers/registries.conf.d/001-rhel-shortnames.conf
/etc/containers/registries.conf.d/002-rhel-shortnames-overrides.conf
/etc/containers/registries.d
/etc/containers/registries.d/default.yaml
/etc/containers/registries.d/registry.access.redhat.com.yaml
/etc/containers/registries.d/registry.redhat.io.yaml
/etc/containers/storage.conf
/usr/share/containers
/usr/share/containers/containers.conf
/usr/share/containers/mounts.conf
/usr/share/containers/seccomp.json
/usr/share/man/man5/containers-auth.json.5.gz
/usr/share/man/man5/containers-certs.d.5.gz
/usr/share/man/man5/containers-mounts.conf.5.gz
/usr/share/man/man5/containers-policy.json.5.gz
/usr/share/man/man5/containers-registries.conf.5.gz
/usr/share/man/man5/containers-registries.conf.d.5.gz
/usr/share/man/man5/containers-registries.d.5.gz
/usr/share/man/man5/containers-signature.5.gz
/usr/share/man/man5/containers-storage.conf.5.gz
/usr/share/man/man5/containers-transports.5.gz
/usr/share/man/man5/containers.conf.5.gz
/usr/share/rhel/secrets
/usr/share/rhel/secrets/etc-pki-entitlement
/usr/share/rhel/secrets/redhat.repo
/usr/share/rhel/secrets/rhsm
/var/lib/containers/sigstore
References
Summary
In this tutorial we learn how to install containers-common
on Rocky Linux 8 using yum and dnf.