You are not logged in.

#1 2020-09-16 17:02:01

pepet79687
Member
Registered: 2020-09-16
Posts: 1

How to uninstall the many haskell packages

I installed haskell a while ago but lost interest. How do I remove the many haskell packages without typing each one by hand?

Here is what I got today when I ran

sudo pacman -Syu                                                                                                           
:: Synchronizing package databases...                                                                                                             
core is up to date                                                                                                                               
extra is up to date                                                                                                                             
community is up to date                                                                                                                         
multilib is up to date                                                                                                                           
:: Starting full system upgrade...                                                                                                               
resolving dependencies...                                                                                                                         
looking for conflicting packages...                                                                                                               
                                                                                                                                                 
Packages (149) brotli-1.0.9-1  haskell-aeson-1.5.4.0-6  haskell-aeson-compat-0.3.9-125  haskell-ansi-terminal-0.11-3                             
               haskell-ansi-wl-pprint-0.6.9-58  haskell-asn1-encoding-0.9.6-44  haskell-asn1-parse-0.9.5-44  haskell-asn1-types-0.3.4-23         
               haskell-assoc-1.0.2-13  haskell-async-2.2.2-26  haskell-attoparsec-0.13.2.4-21  haskell-attoparsec-iso8601-1.0.1.0-75             
               haskell-auto-update-0.1.6-86  haskell-base-compat-batteries-0.11.1-44  haskell-base-orphans-0.8.2-48                               
               haskell-base64-bytestring-1.2.0.0-9  haskell-bifunctors-5.5.7-40  haskell-blaze-html-0.9.1.2-43  haskell-blaze-markup-0.8.2.7-13   
               haskell-call-stack-0.2.0-52  haskell-case-insensitive-1.2.1.0-25  haskell-colour-2.3.5-61  haskell-comonad-5.0.6-40               
               haskell-conduit-1.3.2.1-6  haskell-conduit-extra-1.3.5-46  haskell-connection-0.3.1-51  haskell-constraints-0.12-23               
               haskell-cryptohash-0.11.9-152  haskell-cryptonite-0.27-16  haskell-cryptonite-conduit-0.2.2-292  haskell-data-fix-0.3.0-13         
               haskell-distributive-0.6.2-21  haskell-dlist-1.0-9  haskell-either-5.0.1.1-79  haskell-enclosed-exceptions-1.0.3-72               
               haskell-extra-1.7.7-7  haskell-fast-logger-3.0.1-62  haskell-filelock-0.1.1.5-14  haskell-filtrable-0.1.6.0-5                     
               haskell-free-5.1.3-53  haskell-fsnotify-0.3.0.1-124  haskell-generic-deriving-1.13.1-22  haskell-githash-0.1.4.0-94               
               haskell-glob-0.10.1-14  haskell-hackage-security-0.6.0.1-82  haskell-hashable-1.3.0.0-22  haskell-hi-file-parser-0.1.0.0-61       
               haskell-hinotify-0.4-31  haskell-hourglass-0.2.12-68  haskell-hpack-0.34.2-60  haskell-hslogger-1.3.1.0-44  haskell-hspec-2.7.3-18
               haskell-hspec-core-2.7.3-16  haskell-hspec-discover-2.7.3-4  haskell-hspec-expectations-0.8.2-65                                   
               haskell-hspec-smallcheck-0.5.2-97  haskell-http-api-data-0.4.2-7  haskell-http-client-0.7.2.1-21                                   
               haskell-http-client-tls-0.3.5.3-296  haskell-http-conduit-2.3.7.3-190  haskell-http-download-0.2.0.0-124                           
               haskell-http-types-0.12.3-80  haskell-hunit-1.6.0.0-64  haskell-infer-license-0.2.0-69  haskell-libyaml-0.1.2-55                   
               haskell-lifted-async-0.10.1.2-20  haskell-lifted-base-0.2.3.12-86  haskell-logict-0.7.0.3-8  haskell-lukko-0.1.1.2-23             
               haskell-megaparsec-8.0.0-22  haskell-memory-0.15.0-35  haskell-monad-control-1.0.2.3-86  haskell-monad-logger-0.3.35-18           
               haskell-mono-traversable-1.0.15.1-55  haskell-neat-interpolation-0.5.1.2-5  haskell-network-3.1.2.0-27                             
               haskell-network-bsd-2.8.1.0-24  haskell-network-uri-2.6.3.0-157  haskell-optparse-applicative-0.15.1.0-54                         
               haskell-optparse-generic-1.4.2-13  haskell-optparse-simple-0.1.1.3-18  haskell-path-0.8.0-35  haskell-path-io-1.6.0-61             
               haskell-pem-0.2.4-100  haskell-persistent-2.10.5.2-93  haskell-persistent-sqlite-2.10.6.2-121                                     
                          haskell-persistent-template-2.8.2.3-98  haskell-primitive-0.7.1.0-15  haskell-profunctors-5.5.2-27                        [333/435]
               haskell-project-template-0.2.1.0-22  haskell-quickcheck-2.14.1-25  haskell-quickcheck-io-0.2.0-110  haskell-random-1.2.0-16       
               haskell-regex-applicative-0.3.4-15  haskell-regex-applicative-text-0.1.0.1-35  haskell-resource-pool-0.2.3.2-115                   
               haskell-resourcet-1.2.4.2-16  haskell-retry-0.8.1.2-35  haskell-rio-0.1.18.0-13  haskell-rio-orphans-0.1.1.0-163                   
               haskell-rio-prettyprint-0.1.1.0-19  haskell-safe-exceptions-0.1.7.1-7  haskell-sandi-0.5-144  haskell-scientific-0.3.6.2-38       
               haskell-semigroupoids-5.3.4-48  haskell-shelly-1.8.1-134  haskell-smallcheck-1.2.0-16  haskell-socks-0.6.1-44                     
               haskell-split-0.2.3.4-61  haskell-splitmix-0.1.0.1-14  haskell-store-0.7.7-5  haskell-store-core-0.4.4.3-13                       
               haskell-streaming-commons-0.2.2.1-13  haskell-strict-0.4-14  haskell-system-fileio-0.3.16.4-63  haskell-system-filepath-0.4.14-68 
               haskell-tar-conduit-0.3.2-109  haskell-temporary-1.3-94  haskell-text-metrics-0.3.0-71  haskell-tf-random-0.5-62                   
               haskell-th-lift-instances-0.1.17-17  haskell-th-orphans-0.13.10-24  haskell-th-utilities-0.2.4.0-25  haskell-these-1.1.1.1-14     
               haskell-time-compat-1.9.3-22  haskell-tls-1.5.4-31  haskell-transformers-base-0.4.5.2-84  haskell-typed-process-0.2.6.0-48         
               haskell-unicode-transforms-0.3.7-9  haskell-unix-time-0.4.7-50  haskell-unliftio-0.2.13-20                                         
               haskell-unordered-containers-0.2.12.0-13  haskell-uuid-types-1.0.3-44  haskell-vector-0.12.1.2-41                                 
               haskell-vector-algorithms-0.8.0.3-36  haskell-void-0.7.3-25  haskell-x509-1.7.5-77  haskell-x509-store-1.6.7-76                   
               haskell-x509-system-1.6.6-144  haskell-x509-validation-1.6.11-76  haskell-yaml-0.11.5.0-12  haskell-zip-archive-0.4.1-52           
               htop-3.0.2-1  libgudev-234-1  libldap-2.4.52-1  linux-5.8.9.arch2-1  metis-5.1.0.p10-1  nodejs-14.11.0-1                           
               virtualbox-host-modules-arch-6.1.14-4                                                                                             
                                                                                                                                                 
Total Download Size:   102.10 MiB                                                                                                                 
Total Installed Size:  239.88 MiB                                                                                                                 
Net Upgrade Size:        0.33 MiB                                                                                                                 
                                                                                                                                                 
:: Proceed with installation? [Y/n]

Offline

#2 2020-09-16 17:38:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to uninstall the many haskell packages

Just remove whatever you actually installed with the -Rsn flag.  If you don't remember what you explicitly installed, check:

pacman -Qeq | grep haskell

If you know you don't want anything from haskell anymore, combine the two:

pacman -Qeq | grep haskell | sudo pacman -Rsn -

Last edited by Trilby (2020-09-16 17:38:42)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2020-09-16 18:06:05

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: How to uninstall the many haskell packages

pepet79687, welcome to the forum. Please edit your post and use [ code ] [ /code ] tags ( without the spaces) around that pacman output.

https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Moving to Newbie Corner.

Offline

#4 2023-05-21 05:00:58

amatika
Member
Registered: 2016-03-17
Posts: 59

Re: How to uninstall the many haskell packages

For me there was always "removing x will break a dependecy of y" error when tried to remove haskell packages.
Had to use also the -c flag and carefully check what it will remove.

pacman -Rsc  $(pacman -Qsq haskell-)

Last edited by amatika (2023-05-21 05:06:44)

Offline

#5 2023-05-21 11:34:39

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: How to uninstall the many haskell packages

Closing this old thread (the OP has not been back since 2020).

Offline

Board footer

Powered by FluxBB