[CMake] Installing CMake in Ubuntu Linux from command-line via wget

Roger Leigh rleigh at codelibre.net
Tue Oct 30 08:54:53 EDT 2018


On 30/10/2018 10:56, Osman Zakir wrote:
> Okay, thanks.
> 
> So how about this as the command?
> 
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>      && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>      && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>      && cd cmake-3.12.3-Linux-x86_64  \​
>      && apt-get install \​
>      && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is 
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the 
package manager.  It has nothing to do with installing archives you 
download.


Roger


More information about the CMake mailing list