You are not logged in.
Pages: 1
Topic closed
Hello!
I was trying to remove GIMP and all its plugins using a wildcard like this:
sudo pacman -Rns gimp*but it fails with the error:
zsh: no matches found: gimp*I also tried
sudo pacman -Rns "gimp*"
error: target not found: gimp*
sudo pacman -Rns 'gimp*'
error: target not found: gimp*
sudo pacman -Rns gimp
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing gimp breaks dependency 'gimp' required by gimp-plugin-fblur
:: removing gimp breaks dependency 'gimp>=2.8' required by gimp-plugin-resynthesizer
:: removing gimp breaks dependency 'gimp>=2.3' required by gimp-plugin-saveforweb
:: removing gimp breaks dependency 'gimp' required by gimp-refocus
:: removing gimp breaks dependency 'gimp' required by xsane-gimpHow can I issue a command to remove all gimp[whatever] packages?
Thank you in advance.
--
Damon H.
--
Damon H. {uy}
Offline
Look at the output of pacman -Qsq gimp and see if it lists a rational set of packages. If it looks correct, then...
sudo pacman -Rs $(pacman -Qsq gimp)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
If it looks correct, then...
That part is important as -Qs also matches text in the package description.
Perhaps to be on the safe side:
sudo pacman -Rsn $(pacman -Qsq gimp | grep gimp)Offline
Does -Qsq match the description? I am not in fromt of my machine so I cannot check it right now. If so, great catch!
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
-s, --recursive
Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and
(B) they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation,
and it helps keep a clean system without orphans. If you want to omit condition (B), pass this option twice.
Offline
Or you could use a command like
pactree --reverse gimp # pactree comes with pacman-contribto figure out which packages to start the removal with and let pacman handle removing dependencies .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Look at the output of pacman -Qsq gimp and see if it lists a rational set of packages. If it looks correct, then...
sudo pacman -Rs $(pacman -Qsq gimp)
For those that stumble upon this. In the case that there are packages in the list you don't want, you can redirect to a temp file, remove that with your editor. Then just use
sudo pacman -Rs $(cat /path/to/tmpfile)Not the most elegant, but it's quick and gets it done.
Alternatively, you can just eyeball the list once, then pipe within the shell expanded part to sed with a list of lines/package names to blank out.
Figure this was probably implicit, but worth stating (was just removing vlc, but not playerctl and needed to look this up).
Offline
https://man.archlinux.org/man/vipe.1 but please don't necrobump.
Offline
Also, given that all the plugins depend on gimp, this entire thread has been a red-herring of people troubleshooting the wild-card idea without ever questioning the underlying assumptions about that even being the proper way to go. The relevant pacman flags are -Rc, e.g., `pacman -Rc gimp` optionally with 's' and 'n' as well, but not the double ss as that searches the wrong direction in the dependency tree for the present (aka ancient) goal.
Last edited by Trilby (2026-09-21 19:56:36)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Moderator Note
Closing this old thread.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Pages: 1
Topic closed