2

I've downloaded an already compiled binary distribution of CMake from this link. The package contains a bin, doc, man and share folders. I can unpack them and use them directly from a specific folder, but I'd rather install it globally.

What's the best way of doing it?

1 Answers1

2

Those folders can be extracted in the /usr folder. It can be easily done with tar using:

cd /usr
tar --strip-components=1 -xzf ~user/Downloads/cmake-3.19.6-Linux-x86_64.tar.gz

The --strip-components=1 argument strips the containing folder from the archive.