How to install Salt on Rocky linux 9

On Rocky 8 I was using the following command that now fails:

[root@node1 srv]# rpm -v --import
error: key 1 import failed.

If it try to install salt package I get the following error:

[root@node1 yum.repos.d]# yum install salt-master
Salt repo for RHEL/CentOS 8 PY3 31 kB/s | 3.0 kB 00:00
Problem: package salt-master-3004.2-1.el8.noarch requires salt = 3004.2-1.el8, but none of the providers can be installed

  • conflicting requests
  • nothing provides python(abi) = 3.6 needed by salt-3004.2-1.el8.noarch
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

You’re trying to use an EL8 repo on EL9, which is a bad idea. The message states that it wants python 3.6. This does not exist in 9.

Due in v3005, from the releases list, it’s currently rc1 so not long to wait: Releases · saltstack/salt · GitHub

Repo configuration will then appear at this link: Salt Project Package Repo

1 Like