Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to automatically confirm removing conflicting package? #81

Open
brooksvb opened this issue May 26, 2024 · 0 comments
Open

How to automatically confirm removing conflicting package? #81

brooksvb opened this issue May 26, 2024 · 0 comments

Comments

@brooksvb
Copy link

I have this task:

- name: Install handlr and xdg-utils shim
  become: true
  become_user: ansible
  kewlfft.aur.aur:
    state: present
    name:
      - handlr
      - xdg-utils-handlr   # TODO: How to automatically confirm replacing xdg-utils?

It fails because xdg-utils is already installed and required by various applications. I can't figure out how to have it automatically remove the conflicting package, and I can't just uninstall xdg-utils prior due to it being a dependency for multiple other packages. The only workaround I have is to manually run paru -S xdg-utils-handlr and have it remove the conflicting xdg-utils.

I think this module may need an option to automatically remove conflicting packages. I don't know if the regular pacman or package modules have this option, but I would imagine something like remove_conflicting: true to be an option I could use in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant