cmakeのアップデート
Ubuntuの最新版ではそこまで気にすることではないのかもしれませんが、もしものためにcmakeの更新方法を挙げておきます。
①パッケージのダウンロード
ソフトウェアを保存しておくディレクトリを作っておくとよいです。
mkdir -p $HOME/Important_Software/ && cd $HOME/Important_Software/
パッケージをダウンロード。
wget https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4.tar.gz
#解凍・パッケージ削除
tar zxvf cmake-3.30.4.tar.gz && rm cmake-3.30.4.tar.gz
②cmakeのインストール
ビルド
cd cmake-3.30.4/
./bootstrap
make
#パスを通す
echo 'export PATH=$HOME/Important_Software/cmake-3.17.1/bin/:$PATH' >> ~/.bashrc
source ~/.bashrc
③cmakeのバージョン確認
cmake --version
#cmake version 3.22.1
#CMake suite maintained and supported by Kitware (kitware.com/cmake).
以上です。