.png)
CentOS 8에 gcc 9 설치 (AppStream)
소개
Application Stream (AppStream)을 사용하여 CentOS8에 gcc9 설치
참고 : RHEL 8에서 애플리케이션 개발 Red Hat Enterprise Linux 8 | Red Hat Customer Portal
지원
본 수법으로 도입한 경우, Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portal 보다, 2021-11이 EOL이라고 생각된다.
그 이후에 보고된 취약성이나 결함에 대한 대응은 실시되지 않을 가능성이 있다.
LOG
설치
# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
# yum install -y gcc-toolset-9
... 略
# scl enable gcc-toolset-9 bash
각종 확인
# which gcc
/opt/rh/gcc-toolset-9/root/usr/bin/gcc
# gcc --version
gcc (GCC) 9.1.1 20190605 (Red Hat 9.1.1-2)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# yum info gcc-toolset-9
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:03:16 ago on Sat Jan 25 04:13:00 2020.
Installed Packages
Name : gcc-toolset-9
Version : 9.0
Release : 3.el8
Architecture : x86_64
Size : 2.1 k
Source : gcc-toolset-9-9.0-3.el8.src.rpm
Repository : @System
From repo : AppStream
Summary : Package that installs gcc-toolset-9
License : GPLv2+
Description : This is the main package for gcc-toolset-9 Software Collection.
# yum info gcc-toolset-9-gcc
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:03:43 ago on Sat Jan 25 04:13:00 2020.
Installed Packages
Name : gcc-toolset-9-gcc
Version : 9.1.1
Release : 2.4.el8
Architecture : x86_64
Size : 75 M
Source : gcc-toolset-9-gcc-9.1.1-2.4.el8.src.rpm
Repository : @System
From repo : AppStream
Summary : GCC version 9
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The gcc-toolset-9-gcc package contains the GNU Compiler Collection version 9.
# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
# yum install -y gcc-toolset-9
... 略
# scl enable gcc-toolset-9 bash
# which gcc
/opt/rh/gcc-toolset-9/root/usr/bin/gcc
# gcc --version
gcc (GCC) 9.1.1 20190605 (Red Hat 9.1.1-2)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# yum info gcc-toolset-9
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:03:16 ago on Sat Jan 25 04:13:00 2020.
Installed Packages
Name : gcc-toolset-9
Version : 9.0
Release : 3.el8
Architecture : x86_64
Size : 2.1 k
Source : gcc-toolset-9-9.0-3.el8.src.rpm
Repository : @System
From repo : AppStream
Summary : Package that installs gcc-toolset-9
License : GPLv2+
Description : This is the main package for gcc-toolset-9 Software Collection.
# yum info gcc-toolset-9-gcc
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:03:43 ago on Sat Jan 25 04:13:00 2020.
Installed Packages
Name : gcc-toolset-9-gcc
Version : 9.1.1
Release : 2.4.el8
Architecture : x86_64
Size : 75 M
Source : gcc-toolset-9-gcc-9.1.1-2.4.el8.src.rpm
Repository : @System
From repo : AppStream
Summary : GCC version 9
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The gcc-toolset-9-gcc package contains the GNU Compiler Collection version 9.