Jira (PUP-10798) Unable to install rpm packages via provides of the package

8 views
Skip to first unread message

Frank (Jira)

unread,
Dec 3, 2020, 6:09:04 AM12/3/20
to puppe...@googlegroups.com
Frank created an issue
 
Puppet / Bug PUP-10798
Unable to install rpm packages via provides of the package
Issue Type: Bug Bug
Affects Versions: PUP 6.14.0
Assignee: Unassigned
Created: 2020/12/03 3:08 AM
Priority: Critical Critical
Reporter: Frank

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 3, 2020, 11:43:04 AM12/3/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Dec 4, 2020, 10:24:04 AM12/4/20
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Aug 24, 2021, 3:42:03 AM8/24/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: Triaged tickets
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Aug 24, 2021, 5:09:03 AM8/24/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages