You are not logged in.
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-gimp
How 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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
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-contrib
to 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