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

Mateusz Loskot mateusz at loskot.net
Tue Oct 30 05:27:19 EDT 2018


On Tue, 30 Oct 2018 at 10:22, Osman Zakir <osmanzakir90 at hotmail.com> wrote:
>
> I want to install the latest release version of CMake in my Ubuntu Docker image (from the Dockerfile), but I'm having trouble.  I have this command:
>
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>    && tar 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

Hmm, are you cerctain apt-get is capable of installing from .tar.gz?

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local
cmake --version

I guess, it may be a good idea to update https://cmake.org/install/

Best regards,,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list