Attempting to download `cabal-install` (version 3.4.0.0) binary from the Terminal

I am trying to download using the terminal the cabal-install (version 3.4.0.0) binary from https://www.haskell.org/cabal/download.html without success. I am following the official documentation (Installing the node from source).

I am interested in the Binary download for Ubuntu Linux 18.04. I have tried the following:
curl -o cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz https://www.haskell.org/cabal/download.html/cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz

wget https://www.haskell.org/cabal/download.html/cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz -o cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz

But then when I:
tar -xf cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz (as per instructions)

I get the following error:
tar: This does not look like a tar archive xz: (stdin): File format not recognized tar: Child returned status 1 tar: Error is not recoverable: exiting now

What is the best command to download this cabal-install` (version 3.4.0.0) binary from The Haskell Cabal | Downloads?

Hi!

you downloaded the binary package, not the source package
source package: cabal-install-3.4.0.0.tar.gz

It was just that the instructions were " Download the relevant cabal-install (version 3.4.0.0) binary from The Haskell Cabal | Downloads".

So these are not working for me either:
wget https://www.haskell.org/cabal/download.html/cabal-install-3.4.0.0.tar.gz -o cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz

curl -o cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz https://www.haskell.org/cabal/download.html/cabal-install-3.4.0.0.tar.gz

1 Like

may bad - and you are right. will try to download the binary and come back

$ wget https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz
--2021-04-20 21:37:19--  https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz
Resolving downloads.haskell.org (downloads.haskell.org)... 151.101.113.175, 2a04:4e42:600::431, 2a04:4e42:400::431, ...
Connecting to downloads.haskell.org (downloads.haskell.org)|151.101.113.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6645900 (6.3M) [application/octet-stream]
Saving to: ‘cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz’

cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar. 100%[=====================================================================================================>]   6.34M  3.08MB/s    in 2.1s    

2021-04-20 21:37:22 (3.08 MB/s) - ‘cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz’ saved [6645900/6645900]

$ tar -xf cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz
$ ls
cabal  cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz

try again with a fresh download