community.general
community.general copied to clipboard
pacman: ignore packages of a group
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
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.
cc @indrajitr @tchernomax click here for bot help
what the corresponding pacman
command to install and ignore package(s)?
You can use pacman -S plasma --ignore discover,plasma-sdk
which however
requires user interaction, otherwise they will be installed anyway.
@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...
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):
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.
cc @jraby click here for bot help