티스토리 뷰

OS/Ubuntu

[Ubuntu] GNU bash v5.0 설치 방법

miiingo 2021. 4. 21. 14:46
반응형

오픈소스 테스트를 하는데, 필요한 GNU bash의 최소 버전이 v5.0이었다.

 

기존에 설치된 GNU bash의 버전을 확인해보니 v4.3.48을 사용하고 있었다.

# GNU bash 버전 확인
hyper@ubuntu:~$ bash --version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 

그래서 v5.0 을 설치하기 위해 apt-get 명령을 실행했는데, 그 이후에도 GNU bash의 버전은 똑같이 v4.3.48(1)에 머물러있었다.

# 업데이트 및 업그레이 실행
sudo apt-get update
sudo apt-get upgrade

# GNU bash 버전 재확인
hyper@ubuntu:~$ bash --version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 

찾아보니 bash v5.0은 패키지 제공을 따로 안하고 있는 것 같았다.

결국 수동으로 설치가 필요하다.

# GNU bash v5.0 설치
cd <설치할 디렉토리로 이동>

# 소스 파일 다운로드
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

# 빌드
make

# 빌드 결과를 시스템에 설치
sudo make install

위의 과정이 모두 정상적으로 종료되면 설치가 완료된 것이다.

 

이제 다시 GNU bash의 버전을 확인해보면 다음과 같이 v5.0.0이 출력되는 것을 확인할 수 있다!

# GNU bash 업그레이드 버전 확인
hyper@ubuntu:~$ bash --version
GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함