I've just installed and updated cabal, but it is still using the original version ( instead of the updated The commands I have run, after installation through apt-get:

$ cabal update $ cabal install cabal-install cabal

This built and installed the new version of cabal-install and cabal as was expected, but when I do cabal --v it still prints:

$ cabal --v cabal-install version using version 1.16.0 of the Cabal library

What could be wrong here? My $PATH variable is:

$ echo $PATH /home/user/.rvm/gems/ruby-2.2.2/bin:/home/user/.rvm/gems/ruby-2.2.2@global/bin:/home/user/.rvm/rubies/ruby-2.2.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.rvm/bin:/home/user/.rvm/bin

and cabal is located:

$ which cabal /usr/bin/cabal

A sudo find / -name *cabal* yielded:

$ sudo find / -name *cabal* /usr/bin/cabal /usr/share/doc/cabal-install /usr/share/vim/vim74/syntax/cabal.vim /etc/bash_completion.d/cabal /var/cache/apt/archives/cabal-install_1.16.0.2-2_amd64.deb /var/lib/dpkg/info/cabal-install.list /var/lib/dpkg/info/cabal-install.conffiles /var/lib/dpkg/info/cabal-install.md5sums /home/user/Downloads/pandoc- /home/user/.cabal /home/user/.cabal/bin/cabal /home/user/.cabal/share/doc/cabal-install- /home/user/.cabal/packages/hackage.haskell.org/cabal-install /home/user/.cabal/packages/hackage.haskell.org/cabal-install/


Cabal installs the new cabal version under


Thus, you either have to directly call /home/user/.cabal/bin/cabal or add


to your path.

/usr/bin/cabal is the version packaged by Debian.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.