BARTULA CODE

Linux find package with version

Today i had problem with CLion with WSL Toolchain. On Ubuntu 20.04 by default is installed CMake 22.+ version, when Clion by now supports Cmake ^21.* version. So i need to downgrade my Cmake.

All you need is uninstall Cmake
` apt-get remove cmake (probably you will need uninstall cmake-data` too)

Then check available versions apt-cache policy cmake

cmake:
  Installed: 3.21.3-0kitware1ubuntu20.04.1
  Candidate: 3.22.2-0kitware1ubuntu20.04.1
  Version table:
     3.22.2-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages
     3.22.1-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages
     3.22.0-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages
     3.21.3-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     3.21.1-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages
     3.21.0-0kitware1ubuntu20.04.1 500
        500 https://apt.kitware.com/ubuntu focal/main amd64 Packages

For me i need to install Cmake 3.21.3
To install this you need run

sudo apt-get install cmake=3.21.3-0kitware1ubuntu20.04.1

But becouse cmake required cmake-data too, and it's candidate version is higher than base cmake, you need force to install both packages like that:

sudo apt-get install cmake=3.21.3-0kitware1ubuntu20.04.1 cmake-data=3.21.3-0kitware1ubuntu20.04.1

Read more

Windows Use UTC Time

ctrl+R -> RegEdit -> enter Registry: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation Key: RealTimeIsUniversal Type: DWORD (32-bit) Value. Value: 1 Then restart PC

Extend »
HTTP 204 - No Content