Berikut ini contoh alert is filtered out by modular filtering ketika menginstall docker pada centos 8 yang memerlukan depedensi package bernama container-selinux, pada kasus berikut, package tersebut tidak bisa terinstall otomatis ketika menginstall docker, sehingga package docker tidak dapat di instal

[root@myserver]# sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Repository 'extras' is missing name in configuration, using id.
Docker CE Stable - x86_64                                                                                           39 kB/s | 3.5 kB     00:00
Error:
 Problem 1: package docker-ce-3:25.0.1-1.el8.x86_64 from docker-ce-stable requires container-selinux >= 2:2.74, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package container-selinux-2:2.124.0-1.gitf958d0c.module_el8.4.0+521+9df8e6d3.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.130.0-1.module_el8.4.0+522+66908d0c.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.158.0-1.module_el8.5.0+736+58cc1a5a.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.159.0-1.module_el8.5.0+733+9bb5dffa.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.1-1.module_el8.5.0+870+f792de72.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.2-1.module_el8.5.0+877+1c30e0c9.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.2-1.module_el8.5.0+890+6b136101.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.5.0+911+f19012f9.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.6.0+1107+d59a301b.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.6.0+926+8bef8ae7.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.168.0-2.module_el8.6.0+944+d413f95e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.170.0-1.module_el8.6.0+954+963caf36.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.178.0-1.module_el8.6.0+1108+b13568aa.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.180.0-1.module_el8.7.0+1106+45480ee0.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1196+721f4eb0.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1197+29cf2b8e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1216+b022c01d.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1217+ea57d1f1.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.191.0-1.module_el8.8.0+1255+530d102a.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.195.1-1.module_el8.8.0+1254+78119b6e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.205.0-3.module_el8+392+60106495.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.205.0-3.module_el8+668+cc1a7ff1.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.219.0-1.module_el8+487+8e42a277.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.221.0-1.module_el8+653+feef7bfe.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.227.0-1.module_el8+804+f131391c.noarch from appstream is filtered out by modular filtering
 Problem 2: package containerd.io-1.6.27-3.1.el8.x86_64 from docker-ce-stable requires container-selinux >= 2:2.74, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package container-selinux-2:2.124.0-1.gitf958d0c.module_el8.4.0+521+9df8e6d3.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.130.0-1.module_el8.4.0+522+66908d0c.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.158.0-1.module_el8.5.0+736+58cc1a5a.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.159.0-1.module_el8.5.0+733+9bb5dffa.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.1-1.module_el8.5.0+870+f792de72.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.2-1.module_el8.5.0+877+1c30e0c9.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.164.2-1.module_el8.5.0+890+6b136101.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.5.0+911+f19012f9.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.6.0+1107+d59a301b.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.167.0-1.module_el8.6.0+926+8bef8ae7.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.168.0-2.module_el8.6.0+944+d413f95e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.170.0-1.module_el8.6.0+954+963caf36.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.178.0-1.module_el8.6.0+1108+b13568aa.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.180.0-1.module_el8.7.0+1106+45480ee0.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1196+721f4eb0.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1197+29cf2b8e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1216+b022c01d.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.189.0-1.module_el8.7.0+1217+ea57d1f1.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.191.0-1.module_el8.8.0+1255+530d102a.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.195.1-1.module_el8.8.0+1254+78119b6e.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.205.0-3.module_el8+392+60106495.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.205.0-3.module_el8+668+cc1a7ff1.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.218.0-1.module_el8+454+d7ef4b8d.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.219.0-1.module_el8+487+8e42a277.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.221.0-1.module_el8+653+feef7bfe.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch from appstream is filtered out by modular filtering
  - package container-selinux-2:2.227.0-1.module_el8+804+f131391c.noarch from appstream is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@myserver]#

Untuk menginstall, jalankan command berikut :
dnf –enablerepo=[nama-repository] –setopt=[nama-repository].module_hotfixes=true install [nama-package]

Contoh perintah sebagaimana berikut :

[root@myserver ~]# dnf --enablerepo=LocalRepo_AppStream --setopt=LocalRepo_AppStream.module_hotfixes=true install container-selinux
Repository 'extras' is missing name in configuration, using id.
Last metadata expiration check: 0:06:24 ago on Wed 31 Jan 2024 08:34:09 PM WIB.
Dependencies resolved.
===================================================================================================================================================
 Package                         Architecture         Version                                              Repository                         Size
===================================================================================================================================================
Installing:
 container-selinux               noarch               2:2.224.0-1.module_el8+712+4cd1bd69                  LocalRepo_AppStream                70 k

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

Total size: 70 k
Installed size: 67 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                           1/1
  Running scriptlet: container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch                                                              1/1
  Installing       : container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch                                                              1/1
  Running scriptlet: container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch                                                              1/1
  Verifying        : container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch                                                              1/1

Installed:
  container-selinux-2:2.224.0-1.module_el8+712+4cd1bd69.noarch

Complete!
[root@myserver ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *