You are not logged in.

#1 2015-05-31 02:22:27

xtian
Member
Registered: 2013-08-25
Posts: 179

Pacman and uninstalling multiple packages

I'm having trouble with haskell-pandoc install as described here [1]. After using `#pacman -R` on a few of these packages, I was able to complete my pacman update. The trouble is, I had to uninstall on one package at a time, and there's a bunch in the haskell group.

I tried several suggestions here in forums to remove these packages, but I'm not getting anywhere:

$ sudo pacman -R $(pacman -Qq | grep haskell)
error: only one operation may be used at a time
$ sudo pacman -R $(pacman -Ssq haskell)
[...]
warning: skipping target: haskell-sha
warning: skipping target: haskell-stm
[...]
error: target not found: haskell-x11
warning: skipping target: haskell-zlib
error: target not found: xmonad

Any suggestions?

[1]: https://bbs.archlinux.org/viewtopic.php?id=195784
[2]: https://bbs.archlinux.org/viewtopic.php?id=135649

Offline

#2 2015-05-31 02:51:02

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Pacman and uninstalling multiple packages

You might want to take a closer look at what options do, since pacman -Ssq haskell won't do what you want, suggesting you were typing in commands without knowing what they do. And if haskell is actually a group pacman -Qqg will be closer to what you want, plus you probably want to look for dependencies that should be removed as well.

But if you need to remove any packages containing the word haskell

 sudo pacman -R $(pacman -Qq | grep haskell)

should have worked so it might also help to look at/post the output of just

pacman -Qq | grep haskell

Offline

#3 2015-05-31 03:22:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman and uninstalling multiple packages

Usually 'pacman -R foo' is a bad idea, since it may leave orphans behind.

Offline

#4 2015-05-31 12:53:43

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: Pacman and uninstalling multiple packages

mcmillan wrote:

You might want to take a closer look at what options do, since pacman -Ssq haskell won't do what you want, suggesting you were typing in commands without knowing what they do.

Yes and no. The output from the inner `pacman` call in each example above does, in fact, produce a list of packages with `haskell`.  The outer call to pacman does not work as the posted examples suggest. The only clear difference is the examples were for installing and I'm trying to remove packages.

#pacman -Ssq haskell
alex
c2hs
ghc
happy
haskell-abstract-deque
haskell-abstract-par
haskell-adjunctions
haskell-aeson
haskell-aeson-pretty
haskell-alsa-core
haskell-alsa-mixer
haskell-ansi-terminal
haskell-ansi-wl-pprint
haskell-appar
haskell-asn1-encoding
haskell-asn1-parse
haskell-asn1-types
haskell-async
haskell-atomic-primops
[...]
#pacman -Qq | grep haskell
haskell-aeson
haskell-asn1-encoding
haskell-asn1-parse
haskell-asn1-types
haskell-async
haskell-attoparsec
haskell-base64-bytestring
haskell-blaze-builder
haskell-blaze-html
haskell-blaze-markup
haskell-byteable
haskell-case-insensitive
haskell-cereal
haskell-cipher-aes
haskell-cipher-des
haskell-cipher-rc4
haskell-clock
haskell-connection
haskell-cookie
haskell-cprng-aes

Offline

#5 2015-05-31 15:30:09

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Pacman and uninstalling multiple packages

pacman -Qqs

I really strongly suggest you look at pacman's manual. You have been warned about help vampirism before.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB