Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LTS versions installed by stack

Is there a stack command one can run to get a list of all the LTS versions installed by stack on my system?

like image 288
user1023733 Avatar asked Jul 05 '17 21:07

user1023733


People also ask

How do I know if stack is installed?

You can also find the server details using following steps: http: <hostname:portn0>\index. html -> click on system information-> login with admin rights -> you can get all details about the installed server.

Where does stack install packages?

Stack installs the Stackage libraries in ~/. stack and any project libraries or extra dependencies in a . stack-work directory within each project's directory.

Where does stack install GHC?

You can find these sandboxed GHC installations in the ghc-* directories in the stack path --programs directory. If you would like Stack to use your system GHC installation, use the --system-ghc flag or run stack config set system-ghc --global true to make Stack check your PATH for a suitable GHC by default.

Where is Haskell stack installed?

Stack-built files generally go in either the Stack root directory (default: ~/. stack on Unix-like operating systems, or, %LOCALAPPDATA%\Programs\stack on Windows) or ./. stack-work directories local to each project. The Stack root directory holds packages belonging to snapshots and any Stack-installed versions of GHC.


1 Answers

Not sure about stack command but you can do it with bash command:

$ ls ~/.stack/snapshots/x86_64-linux/

For me it prints:

lts-8.13  lts-8.15  lts-8.17  lts-8.21  lts-8.3

Instead of x86_64-linux should be your arch. But you don't need to remember it. Just press TAB after snapshots/.

like image 165
Shersh Avatar answered Sep 30 '22 01:09

Shersh