You are not logged in.
Pages: 1
Topic closed
Is there a way to make pacman install all packages beginning with a certain string?
For exemple:
pacman -S kdeplasma-addons*
would install all packages starting with "kdeplasma-addons"
I'm actually surprised this doesn't work. I looked in the documentation but I don't find anything,
Last edited by geoffm (2012-02-12 22:11:47)
Offline
No, but something like this will work:
pacman -Ssq <regex> | sudo pacman -S -
also related: https://bugs.archlinux.org/task/1561
Offline
Why don't you simply install kdeplasma-addons or kde-meta-kdeplasma-addons?
Last edited by desm0tes (2012-02-12 22:22:37)
Offline
Try
pacman -S $(pacman -Ssq kdeplasma-addons*)
Offline
Or
pacman -S $(pacman -Qq | grep kdeplasma-addons*)
"Common sense is not common"
Offline
Or
pacman -S $(pacman -Qq | grep kdeplasma-addons*)
This won't work. OP doesn't want to reinstall them.
[karol@black ~]$ pacman -S $(pacman -Qq | grep kdeplasma-addons*)
error: no targets specified (use -h for help)
Last edited by karol (2012-02-13 21:47:10)
Offline
Ah yes I stand corrected ! - It's great for removing them again though:
pacman -Rns $(pacman -Qq | grep kdeplasma-addons*)
"Common sense is not common"
Offline
Sure, but
pacman -Rns kdeplasma-addons
should work too.
I think falconindy posted the best general way of doing this.
Offline
Sure, but
pacman -Rns kdeplasma-addons
should work too.
This should work only, when he initially installed the package group, as I suggested, instead of installing the individual packages...at least that's the case for metapackages.
Offline
Sure, but
pacman -Rns kdeplasma-addons
should work too.
I think falconindy posted the best general way of doing this.
Sure he is the guru.
The simple -Rns will often get you into a dependency hell - I learned that when removing all gnome-shell* . So there is a difference when using the wildcard AFAICT.
Last edited by viking60 (2012-02-13 22:39:29)
"Common sense is not common"
Offline
No, but something like this will work:
pacman -Ssq <regex> | sudo pacman -S -
also related: https://bugs.archlinux.org/task/1561
Thank you for this solution.
Can anyone enlighten me as to why this needs the " - " on the end to work?
Desktop: Arch Linux | i3WM | Intel Core i5-9600K | 16GB RAM | AMD Radeon RX 470 | Dual monitors @ 1440p + 1080p
Laptop: Arch + Debian Linux | AwesomeWM | HP Elitebook 2570p | Intel Core i5-3200 | 8GB RAM
~ Do or do not, there is no try ~
Offline
Nevermind, I found my answer.
" - " tacked on the end is the symbol for stdin
Desktop: Arch Linux | i3WM | Intel Core i5-9600K | 16GB RAM | AMD Radeon RX 470 | Dual monitors @ 1440p + 1080p
Laptop: Arch + Debian Linux | AwesomeWM | HP Elitebook 2570p | Intel Core i5-3200 | 8GB RAM
~ Do or do not, there is no try ~
Offline
This thread is seven years old. Please do not necrobump.
Closing.
"The prettier the user interface, and the fewer odd replies the system allows you to make, the dumber you once appeared in the mind of the designer." -- Ellen Ullman
-----
How to post
Offline
Pages: 1
Topic closed