Skip to content

pacman provider not working on CachyOS #9580

Open

Description

@barryking93

Describe the Bug

pacman doesn't function as a provider on cachyos, which is based on archlinux

Expected Behavior

pacman should work on cachyos, since it's the default package manager there and is in the $PATH

Steps to Reproduce

Steps to reproduce the behavior:

  1. tell puppet to install a package w/ pacman as a provider
  2. recieve error:
    Error: /Package[packagenamehere]: Provider pacman is not functional on this host

Environment

  • Version - 8.1.0
  • Platform - CachyOS current

Additional Context

I think your easiest bet here is to base the provider of 'pacman' on using ['os]['family'] of 'Archlinux' instead of basing it on ['os']['name'], which is what the related docs say you're doing here: https://help.puppet.com/core/current/Content/PuppetCore/Markdown/package.htm#package-provider-pacman

Activity

  1. added
    bug
    on Apr 15, 2026
  2. NuWhE3wn0D commented on Jul 19, 2026

    @NuWhE3wn0D

    It seems like the provider's functionality is tied to the check on ['os']['name'] instead of ['os']['family'], as mentioned in the issue. Have you tried checking the output of facter os to confirm the values returned for both ['os']['name'] and ['os']['family'] on your CachyOS system? This might provide insight into whether the provider logic needs adjustment to accommodate distributions that are Arch-based but not recognized as Archlinux specifically.

  3. rorieaniston26 commented on Aug 18, 2026

    @rorieaniston26

    It seems that the pacman provider might not be recognizing CachyOS correctly due to how it checks the OS in its initialization. Have you looked at the initialize method in the pacman provider code? You might want to add some debug logging there to see what values are being processed for ['os']['name'] and ['os']['family'] when the provider loads. This could help identify if the verification logic needs adjustment to support CachyOS as it relates to the expected behavior.

  4. jadayaanaliah26 commented on Aug 29, 2026

    @jadayaanaliah26

    The Provider pacman is not functional on this host error in 8.1.0 comes from the pacman provider's confine block matching against the operatingsystem fact instead of osfamily which CachyOS reports as Archlinux.

  5. gustavocastillo5 commented on Sep 4, 2026

    @gustavocastillo5

    OS as part of the Archlinux family, the fix actually needs to happen in Facter's OS

  6. naeemgwendlyn26 commented on Sep 4, 2026

    @naeemgwendlyn26

    The confine block for the pacman provider likely restricts execution to operatingsystem => Archlinux, so changing the constraint to osfamily => Archlinux within the provider definition should resolve the registration failure on CachyOS.

  7. roberalani26 commented on Sep 11, 2026

    @roberalani26

    The current confine block in the pacman provider uses Facter.value(:operatingsystem) == 'Archlinux', which is too restrictive for downstream distributions. To fix this, we should modify the confine statement to check Facter.value(:osfamily) == 'Arch' instead, as this will correctly encompass both base Arch and CachyOS. Can you confirm if your local Facter output for osfamily returns Arch when running facter osfamily on your CachyOS environment?

  8. beefyi6 commented on Oct 25, 2026

    @beefyi6

    workaround/PR change in lib/puppet/provider/package/pacman.rb.
    *

  9. gweneverebraydan26 commented on Oct 31, 2026

    @gweneverebraydan26

    The provider's confine block should be updated to use feature?(:posix) alongside osfamily == 'Archlinux' to ensure it triggers correctly on downstream distributions like CachyOS. Have you verified if modifying the confine block in the provider source to replace the operatingsystem check with osfamily resolves the initialization error during the catalog application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions