Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all the installed packages and their version with Cabal?

Tags:

haskell

cabal

Is there a simple command / option that lets you do that? I could use grep but I wonder if there is a builtin option?

like image 348
frmsaul Avatar asked Apr 30 '16 09:04

frmsaul


People also ask

Where are Cabal packages installed?

Using Cabal By default stack installs packages to ~/. cabal and ~/. ghc in your home directory.

How do you determine what packages are installed on a system?

You use the pkgchk command to check installation completeness, path name, file contents, and file attributes of a package. See pkgchk(1M) for more information on all the options. Use the pkginfo command to display information about the packages that are installed on the system.


1 Answers

We can simply do:

cabal list --installed 
like image 141
frmsaul Avatar answered Sep 26 '22 22:09

frmsaul