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

pacman: ignore packages of a group #1665

Open
TomZanna opened this issue Jan 23, 2021 · 8 comments
Open

pacman: ignore packages of a group #1665

TomZanna opened this issue Jan 23, 2021 · 8 comments
Labels
feature This issue/PR relates to a feature request module module needs_triage os packaging plugins plugin (any type)

Comments

@TomZanna
Copy link

SUMMARY

Implement the option to avoid installing some packages of a group.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

pacman

ADDITIONAL INFORMATION

I wrote a playbook for my laptop to configure an Arch install.
However, there are some packages included in a group that I would not like to have installed.

- name: Install the DE
  pacman:
    name:
      - plasma
    state: present
    ignore:
      - discover
      - plasma-sdk
      - plasma-thunderbolt
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added affects_2.10 feature This issue/PR relates to a feature request module module needs_triage os packaging plugins plugin (any type) labels Jan 23, 2021
@mator
Copy link
Contributor

mator commented Jan 24, 2021

what the corresponding pacman command to install and ignore package(s)?

@TomZanna
Copy link
Author

You can use pacman -S plasma --ignore discover,plasma-sdk which however
requires user interaction, otherwise they will be installed anyway.

@mator
Copy link
Contributor

mator commented Jan 28, 2021

@TomZanna , does --ignore even works?

used the following to check:

[mator@archlinux ~]$ sudo pacman -Sp plasma | egrep "discover|sdk"
https://mirror.rol.ru/archlinux/extra/os/x86_64/discover-5.20.5-1-x86_64.pkg.tar.zst
https://mirror.rol.ru/archlinux/extra/os/x86_64/plasma-sdk-5.20.5-1-x86_64.pkg.tar.zst
[mator@archlinux ~]$ sudo pacman -Sp plasma --ignore discover,plasma-sdk | egrep "discover|sdk"
https://mirror.rol.ru/archlinux/extra/os/x86_64/discover-5.20.5-1-x86_64.pkg.tar.zst
https://mirror.rol.ru/archlinux/extra/os/x86_64/plasma-sdk-5.20.5-1-x86_64.pkg.tar.zst

packages are downloaded even if --ignore is specified...

@TomZanna
Copy link
Author

I've just tried and for me it works. However, as far as I know, user interaction is required.

[tomzanna@tomslaptop`` ~]$ sudo pacman -S plasma --ignore discover,plasma-sdk
:: discover è in IgnorePkg/IgnoreGroup. Vuoi installarlo comunque? [S/n] n
:: plasma-sdk è in IgnorePkg/IgnoreGroup. Vuoi installarlo comunque? [S/n] n
:: Ci sono 41 membri nel gruppo plasma:
:: Repository extra
   1) bluedevil  2) breeze  3) breeze-gtk  4) drkonqi  5) kactivitymanagerd  6) kde-cli-tools
   7) kde-gtk-config  8) kdecoration  9) kdeplasma-addons  10) kgamma5  11) khotkeys  12) kinfocenter
   13) kmenuedit  14) kscreen  15) kscreenlocker  16) ksshaskpass  17) ksysguard  18) kwallet-pam
   19) kwayland-integration  20) kwayland-server  21) kwin  22) kwrited  23) libkscreen  24) libksysguard
   25) milou  26) oxygen  27) plasma-browser-integration  28) plasma-desktop  29) plasma-disks
   30) plasma-integration  31) plasma-nm  32) plasma-pa  33) plasma-thunderbolt  34) plasma-vault
   35) plasma-workspace  36) plasma-workspace-wallpapers  37) polkit-kde-agent  38) powerdevil  39) sddm-kcm
   40) systemsettings  41) xdg-desktop-portal-kde

Digita una selezione (default=tutto):

@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @jraby
click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module needs_triage os packaging plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

4 participants