The command ghc-pkg can be used to handle GHC packages. It is used both internally by other tools and by GHC users.
The ghc-pkg tool is for querying and modifying package databases. The command ghc-pkg
can be used to handle GHC packages. It is used both internally by other tools and by GHC users. It contains many commands that are often not needed by an average user.
This tool is most often used for uninstalling unneeded packages and those packages that are incompatible with packages that the user wants to install. It is also used for checking which packages are installed or have been broken by installs of other packages.
The stack of databases that ghc-pkg
knows about can be modified using the GHC_PACKAGE_PATH
environment variable and using --package-db
options on the ghc-pkg
command line.