community.general icon indicating copy to clipboard operation
community.general copied to clipboard

pacman: ignore packages of a group

Open TomZanna opened this issue 3 years ago • 8 comments

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

TomZanna avatar Jan 23 '21 16:01 TomZanna

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 avatar Jan 23 '21 16:01 ansibullbot

cc @indrajitr @tchernomax click here for bot help

ansibullbot avatar Jan 23 '21 16:01 ansibullbot

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

mator avatar Jan 24 '21 16:01 mator

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

TomZanna avatar Jan 24 '21 17:01 TomZanna

@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...

mator avatar Jan 28 '21 15:01 mator

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):

TomZanna avatar Jan 31 '21 13:01 TomZanna

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 avatar Nov 11 '22 01:11 ansibullbot

cc @jraby click here for bot help

ansibullbot avatar Apr 20 '23 06:04 ansibullbot