| Puppet Version: 6.14 OS Name/Version: CentOS 8.2 It is not possible to install an rpm package via an provides name of the package. Sample:
package { 'dnf-plugin-post-transaction-actions': ensure => installed} |
it will fails with:
Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y list dnf-plugin-post-transaction-actions' returned 1: Error: No matching Packages to list |
because dnf list only work with real package names, not with package provides. But an blind dnf call will work:
LANG=C dnf install dnf-plugin-post-transaction-actions |
Last metadata expiration check: 0:00:11 ago on Thu Dec 3 12:02:50 2020. |
Dependencies resolved. |
=================================================================================================================================================================================================================== |
Package Architecture Version Repository Size |
=================================================================================================================================================================================================================== |
Installing: |
python3-dnf-plugin-post-transaction-actions noarch 4.0.12-4.el8_2 BaseOS 51 kTransaction Summary |
=================================================================================================================================================================================================================== |
Install 1 Package |
|
It will provides:
dnf download dnf-plugin-post-transaction-actions |
python3-dnf-plugin-post-transaction-actions-4.0.12-4.el8_2.noarch.rpm |
|
rpm -qp --provides python3-dnf-plugin-post-transaction-actions-4.0.12-4.el8_2.noarch.rpm |
config(python3-dnf-plugin-post-transaction-actions) = 4.0.12-4.el8_2 |
dnf-plugin-post-transaction-actions = 4.0.12-4.el8_2 |
python3-dnf-plugin-post-transaction-actions = 4.0.12-4.el8_2
|
So it can be installed via dnf install dnf-plugin-post-transaction-actions. But puppet can't handle package provides of an rpm package. So doing the same with puppet will fail. |