CentOS 7.9にbash5.0をインストールする

環境
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

bash5.0インストールの方法
1.現行のバージョンを確認します

# bash --version
GNU bash, バージョン 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.

2.システムアップデートを行います
# sudo yum -y update

3.依存パッケージをインストールします
curlをインストールします
# sudo yum -y install curl
開発ツールをインストールします
# sudo yum -y groupinstall “Development Tools"

4.bash5.0ファイルをダウンロードします
# curl -O https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
ファイルを解凍します
# tar xvf bash-5.0.tar.gz

ファイルをコンパイルします
# cd bash-5.0
# ./configure

5.bash5.0をインストールします
# make
# sudo make install

6.bashのバージョンを確認します

# bash --version
GNU bash, バージョン 5.0.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 またはそれ以降 <http://gnu.org/licenses/gpl.html>

 

CentOS 7

Posted by arkgame