-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add --setopt=skip_missing_names_on_install=False to "yum install" #871
Conversation
😩 @Djelibeybi any deep wisdom as to how we can find 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 If we can't fix this, I'll just plan to remove |
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. :) |
Heh, but that's just |
Ha, I misunderstood the question. One moment, I'm checking. |
It's in our EPEL repo, so: yum -y install oracle-epel-release-el7
yum -y install zstd |
d439bcc
to
35b9008
Compare
Yay, it works! Thank you 😊 |
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.
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.
See https://unix.stackexchange.com/a/477127/153467 for details 🙈