코[root@localhost /]# dnf install git
Updating Subscription Management repositories.
Last metadata expiration check: 0:05:20 ago on Wed 10 Sep 2025 08:51:24 AM EDT.
Dependencies resolved.
============================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================
Installing:
git x86_64 2.43.7-1.el8_10 rhel-8-for-x86_64-appstream-rpms 93 k
Installing dependencies:
git-core x86_64 2.43.7-1.el8_10 rhel-8-for-x86_64-appstream-rpms 11 M
git-core-doc noarch 2.43.7-1.el8_10 rhel-8-for-x86_64-appstream-rpms 3.1 M
perl-Error noarch 1:0.17025-2.el8 rhel-8-for-x86_64-appstream-rpms 46 k
perl-Git noarch 2.43.7-1.el8_10 rhel-8-for-x86_64-appstream-rpms 79 k
perl-TermReadKey x86_64 2.37-7.el8 rhel-8-for-x86_64-appstream-rpms 40 k
Transaction Summary
============================================================================================================================================
Install 6 Packages
Total download size: 14 M
Installed size: 46 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): perl-Error-0.17025-2.el8.noarch.rpm 122 kB/s | 46 kB 00:00
(2/6): perl-TermReadKey-2.37-7.el8.x86_64.rpm 97 kB/s | 40 kB 00:00
(3/6): git-2.43.7-1.el8_10.x86_64.rpm 190 kB/s | 93 kB 00:00
(4/6): perl-Git-2.43.7-1.el8_10.noarch.rpm 308 kB/s | 79 kB 00:00
(5/6): git-core-doc-2.43.7-1.el8_10.noarch.rpm 808 kB/s | 3.1 MB 00:03
(6/6): git-core-2.43.7-1.el8_10.x86_64.rpm 2.7 MB/s | 11 MB 00:04
--------------------------------------------------------------------------------------------------------------------------------------------
Total 3.3 MB/s | 14 MB 00:04
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 4.9 MB/s | 5.0 kB 00:00
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>"
Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Importing GPG key 0xD4082792:
Userid : "Red Hat, Inc. (auxiliary key) <security@redhat.com>"
Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : git-core-2.43.7-1.el8_10.x86_64 1/6
Installing : git-core-doc-2.43.7-1.el8_10.noarch 2/6
Installing : perl-TermReadKey-2.37-7.el8.x86_64 3/6
Installing : perl-Error-1:0.17025-2.el8.noarch 4/6
Installing : git-2.43.7-1.el8_10.x86_64 5/6
Installing : perl-Git-2.43.7-1.el8_10.noarch 6/6
Running scriptlet: perl-Git-2.43.7-1.el8_10.noarch 6/6
Verifying : perl-Error-1:0.17025-2.el8.noarch 1/6
Verifying : perl-TermReadKey-2.37-7.el8.x86_64 2/6
Verifying : git-2.43.7-1.el8_10.x86_64 3/6
Verifying : git-core-2.43.7-1.el8_10.x86_64 4/6
Verifying : git-core-doc-2.43.7-1.el8_10.noarch 5/6
Verifying : perl-Git-2.43.7-1.el8_10.noarch 6/6
Installed products updated.
Installed:
git-2.43.7-1.el8_10.x86_64 git-core-2.43.7-1.el8_10.x86_64 git-core-doc-2.43.7-1.el8_10.noarch perl-Error-1:0.17025-2.el8.noarch
perl-Git-2.43.7-1.el8_10.noarch perl-TermReadKey-2.37-7.el8.x86_64
Complete!
Installing Docker on Red Hat Enterprise Linux (RHEL) 8.6 involves adding the Docker repository and then installing the necessary packages. RHEL 8 typically uses Podman and Buildah as native container tools, but Docker CE can still be installed.
Prerequisites:
Red Hat Subscription: Ensure your RHEL 8.6 system is registered with a valid Red Hat subscription.
Internet Connection: Required for downloading packages.
Admin Privileges: You need sudo access to perform the installation.
Installation Steps:
Remove Podman and Buildah (Optional but Recommended):
If you are not using Podman or Buildah, it is recommended to remove them to avoid potential conflicts.
코드
sudo yum remove podman buildah -y
Add Docker Repository.
Docker packages are not in the default RHEL 8 repositories. You need to add the official Docker CE repository.
코드
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
Install Docker CE and Docker Compose Plugin:
Now, install the Docker Community Edition (docker-ce) and the Docker Compose plugin.
코드
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
Start and Enable Docker Service.
After installation, start and enable the Docker service to ensure it runs on system startup.
코드
sudo systemctl start docker
sudo systemctl enable docker
Add User to Docker Group (Optional but Recommended):
To run Docker commands without sudo, add your user to the docker group. Replace your_username with your actual username.
코드
sudo usermod -aG docker your_username
You will need to log out and log back in for this change to take effect. Verify Installation.
Run a simple Docker command to verify the installation.
코드
docker run hello-world
This command downloads and runs a "hello-world" image, which should print a message confirming Docker is working.