rocky-linux / sig-cloud-instance-images

47 stars 7 forks source link

rockylinux:9.0 image missing diffutils #34

Open shenxianpeng opened 1 year ago

shenxianpeng commented 1 year ago

I saw the link to report an issue on the official docker homepage pointing here so I report here.

Compared with rockylinux:8, rockylinux:9.0 doesn't include diffutils package by default after running dnf update -y command.

Output from Rocky Linux release 9

[root@ff5b55143e85 /]# dnf update -y
Rocky Linux 9 - BaseOS                                                   5.0 MB/s | 1.7 MB     00:00    
Rocky Linux 9 - AppStream                                                2.7 MB/s | 6.0 MB     00:02    
Rocky Linux 9 - Extras                                                   5.2 kB/s | 3.5 kB     00:00    
Dependencies resolved.

...

Complete!
[root@ff5b55143e85 /]# diff
bash: diff: command not found
[root@ff5b55143e85 /]# cat /etc/redhat-release 
Rocky Linux release 9.0 (Blue Onyx)

Output from Rocky Linux release 8

[root@4bc6ffec3c81 /]# dnf update -y
Rocky Linux 8 - AppStream                                                 33 MB/s | 9.6 MB     00:00    
Rocky Linux 8 - BaseOS                                                   6.7 MB/s | 6.7 MB     00:01    
Rocky Linux 8 - Extras                                                    83 kB/s |  11 kB     00:00    
Dependencies resolved.

...

Complete!
[root@4bc6ffec3c81 /]# diff
diff: missing operand after 'diff'
diff: Try 'diff --help' for more information.
[root@4bc6ffec3c81 /]# cat /etc/redhat-release 
Rocky Linux release 8.6 (Green Obsidian)
tbugfinder commented 1 year ago

hm, my rockylinux:8 doesn't include diff.

shenxianpeng commented 1 year ago

Hi rockylinux:8 include diff after running dnf update -y, please refer my output.

C:\Users\xianp>docker run -it rockylinux:8 bash
Unable to find image 'rockylinux:8' locally
8: Pulling from library/rockylinux
0049b869cecb: Pull complete
Digest: sha256:afd392a691df0475390df77cb5486f226bc2b4cbaf87c41785115b9237f3203f
Status: Downloaded newer image for rockylinux:8
[root@44230ed11a09 /]# diff
bash: diff: command not found
[root@44230ed11a09 /]# dnf update -y

....

Installed:
  diffutils-3.6-6.el8.x86_64       gnupg2-smime-2.2.20-3.el8_6.x86_64               libsecret-0.18.6-1.el8.0.2.x86_64
  libxkbcommon-0.9.1-1.el8.x86_64  openssl-1:1.1.1k-7.el8_6.x86_64                  openssl-pkcs11-0.4.10-2.el8.x86_64
  pinentry-1.1.0-2.el8.x86_64      platform-python-pip-9.0.3-22.el8.rocky.0.noarch  xkeyboard-config-2.28-1.el8.noarch

Complete!

[root@44230ed11a09 /]# diff
diff: missing operand after 'diff'
diff: Try 'diff --help' for more information.