Skip to content

Add --setopt=skip_missing_names_on_install=False to "yum install" #871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Jun 27, 2022

@tianon
Copy link
Member Author

tianon commented Jun 27, 2022

😩

@Djelibeybi any deep wisdom as to how we can find zstd in OL7? 😬 I find a lot of things on the internet that claim it should be a thing that exists in OL7, but I can't seem to find it:

bash-4.2# grep -F '[' /etc/yum.repos.d/* | cut -d'[' -f2 | cut -d']' -f1 | sed 's/^/--enablerepo=/' | xargs -rt yum list available | grep zstd
yum list available --enablerepo=ol7_latest --enablerepo=ol7_u0_base --enablerepo=ol7_u1_base --enablerepo=ol7_u2_base --enablerepo=ol7_u3_base --enablerepo=ol7_u4_base --enablerepo=ol7_u5_base --enablerepo=ol7_u6_base --enablerepo=ol7_u7_base --enablerepo=ol7_u8_base --enablerepo=ol7_u9_base --enablerepo=ol7_optional_latest --enablerepo=ol7_addons --enablerepo=ol7_MODRHCK --enablerepo=ol7_leapp --enablerepo=ol7_latest_archive --enablerepo=ol7_optional_archive --enablerepo=ol7_security_validation --enablerepo=ol7_u8_security_validation --enablerepo=ol7_UEKR6 --enablerepo=ol7_UEKR5 --enablerepo=ol7_UEKR4 --enablerepo=ol7_UEKR3 --enablerepo=ol7_UEKR3_OFED20 --enablerepo=ol7_UEKR6_RDMA --enablerepo=ol7_UEKR5_RDMA --enablerepo=ol7_UEKR4_OFED --enablerepo=ol7_UEKR4_archive --enablerepo=ol7_UEKR5_archive --enablerepo=ol7_kvm_utils 
libzstd.i686                       1.4.4-1.el7              ol7_UEKR6           
libzstd.x86_64                     1.4.4-1.el7              ol7_UEKR5           
libzstd-devel.i686                 1.4.4-1.el7              ol7_UEKR6           
libzstd-devel.x86_64               1.4.4-1.el7              ol7_UEKR5           

(I'm sure there's a better way to do that --enablerepo= check too, but you know, short on spoons for yum right now given skip_missing_names_on_install is even a thing that exists and defaults to True)

If we can't fix this, I'll just plan to remove zstd from the list on 5.7 and call it a day, lol.

@Djelibeybi
Copy link

We disable the UEK repos inside the container images so that customers don't try and install a kernel inside a container. To install it, you will have to enable the repo on-the-fly:

$ yum --enablerepo=ol7_UEKR6 install -y libzstd
Loaded plugins: ovl
ol7_UEKR6                                                                                                    | 3.0 kB  00:00:00
ol7_latest                                                                                                   | 3.6 kB  00:00:00
(1/5): ol7_UEKR6/x86_64/updateinfo                                                                           | 535 kB  00:00:00
(2/5): ol7_latest/x86_64/group_gz                                                                            | 136 kB  00:00:00
(3/5): ol7_latest/x86_64/updateinfo                                                                          | 3.4 MB  00:00:00
(4/5): ol7_UEKR6/x86_64/primary_db                                                                           |  41 MB  00:00:02
(5/5): ol7_latest/x86_64/primary_db                                                                          |  40 MB  00:00:01
Resolving Dependencies
--> Running transaction check
---> Package libzstd.x86_64 0:1.4.4-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================================================================================
 Package                                                     Arch                                                       Version                                                            Repository                                                     Size
===============================================================================================================================================================================================================================================================
Installing:
 libzstd                                                     x86_64                                                     1.4.4-1.el7                                                        ol7_UEKR6                                                     259 k

Transaction Summary
===============================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 259 k
Installed size: 682 k
Is this ok [y/d/N]: y
Downloading packages:
libzstd-1.4.4-1.el7.x86_64.rpm                                                                                                                                                                                                          | 259 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libzstd-1.4.4-1.el7.x86_64                                                                                                                                                                                                                  1/1
  Verifying  : libzstd-1.4.4-1.el7.x86_64                                                                                                                                                                                                                  1/1

Installed:
  libzstd.x86_64 0:1.4.4-1.el7

Complete!
bash-4.2#

But, at least it doesn't pull in any dependencies, like a kernel. :)

@tianon
Copy link
Member Author

tianon commented Jun 27, 2022

Heh, but that's just libzstd, and I need the command-line tool zstd 😇

@Djelibeybi
Copy link

Ha, I misunderstood the question. One moment, I'm checking.

@Djelibeybi
Copy link

It's in our EPEL repo, so:

yum -y install oracle-epel-release-el7
yum -y install zstd

@tianon tianon force-pushed the skip_missing_names_on_install branch from d439bcc to 35b9008 Compare June 27, 2022 22:02
@tianon
Copy link
Member Author

tianon commented Jun 27, 2022

Yay, it works! Thank you 😊

@yosifkit yosifkit merged commit a8808d1 into docker-library:master Jun 27, 2022
@yosifkit yosifkit deleted the skip_missing_names_on_install branch June 27, 2022 22:55
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 27, 2022
Changes:

- docker-library/mysql@a8808d1: Merge pull request docker-library/mysql#871 from infosiftr/skip_missing_names_on_install
- docker-library/mysql@35b9008: Add --setopt=skip_missing_names_on_install=False to "yum install"
- docker-library/mysql@8720110: Merge pull request docker-library/mysql#870 from woutersamaey/master
- docker-library/mysql@b22945d: Added "bzip2" so we can import .sql.bz2 dumps.
BaurzhanSakhariev pushed a commit to crate/official-images that referenced this pull request Jul 18, 2022
Changes:

- docker-library/mysql@a8808d1: Merge pull request docker-library/mysql#871 from infosiftr/skip_missing_names_on_install
- docker-library/mysql@35b9008: Add --setopt=skip_missing_names_on_install=False to "yum install"
- docker-library/mysql@8720110: Merge pull request docker-library/mysql#870 from woutersamaey/master
- docker-library/mysql@b22945d: Added "bzip2" so we can import .sql.bz2 dumps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants