1. YUM 설정 및 패키지 설치

A) Local YUM Repository 설정

외부 인터넷 연결을 하지않고 설치 ISO 이미지로 YUM Repository를 구성하여 yum install을 사용할 수 있도록 설정하는 방법입니다.

디스크 마운트
mount /dev/cdrom /mnt
df | grep mnt
[root@node1 ~]# mount /dev/cdrom /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.

[root@node1 ~]# df | grep mnt
/dev/sr0              8141108 8141108         0 100% /mnt

VM에 ISO 파일을 연결하고, cdrom을 디렉토리에 mount 시켜줍니다. 

기존 Repository 파일 정리
mv /etc/yum.repos.d/oracle-linux-ol8.repo /etc/yum.repos.d/oracle-linux-ol8.repo.bak
mv /etc/yum.repos.d/uek-ol8.repo /etc/yum.repos.d/uek-ol8.repo.bak
mv /etc/yum.repos.d/virt-ol8.repo /etc/yum.repos.d/virt-ol8.repo.bak
[root@node1 ~]# mv /etc/yum.repos.d/oracle-linux-ol8.repo /etc/yum.repos.d/oracle-linux-ol8.repo.bak
[root@node1 ~]# mv /etc/yum.repos.d/uek-ol8.repo /etc/yum.repos.d/uek-ol8.repo.bak
[root@node1 ~]# mv /etc/yum.repos.d/virt-ol8.repo /etc/yum.repos.d/virt-ol8.repo.bak

기존에 생성되어 있던 Repository 파일은 모두 이름을 변경하여, 사용하지 않도록 수정합니다.

vi /etc/yum.repos.d/local.repo
[InstallMedia-BaseOS]
name=Oracle Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

[InstallMedia-AppStream]
name=Oracle Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
[root@node1 ~]# cat /etc/yum.repos.d/local.repo
[InstallMedia-BaseOS]
name=Oracle Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

[InstallMedia-AppStream]
name=Oracle Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

local.repo라는 Repository 파일을 생성합니다.

Repository 이름과 연결될 디렉토리 등을 입력합니다.

Repository 로딩 및 확인
yum clean all
yum repolist all
[root@node1 ~]# yum clean all
0 files removed

[root@node1 ~]# yum repolist all
repo id                            repo name                               status
InstallMedia-AppStream             Oracle Linux 8 - AppStream              사용
InstallMedia-BaseOS                Oracle Linux 8 - BaseOS                 사용

Repository를 재로딩하면 정상적으로 등록된 것을 확인할 수 있습니다.

B) 필수 패키지 설치

필수 패키지 설치
yum install elfutils-libelf-devel fontconfig-devel ksh libaio-devel libnsl sysstat
# yum install kmod-oracleasm
[root@node1 ~]# yum install elfutils-libelf-devel fontconfig-devel ksh libaio-devel libnsl sysstat
Oracle Linux 8 - BaseOS                          176 MB/s | 3.2 MB     00:00
Oracle Linux 8 - AppStream                       176 MB/s | 5.8 MB     00:00
마지막 메타 데이터 만료 확인 : 0:00:02 전에 2020년 09월 22일 (화) 오후 01시 10분 06초.
Dependencies resolved.
=================================================================================
 Package               Arch   Version               Repository              Size
=================================================================================
Installing:
 elfutils-libelf-devel x86_64 0.178-7.el8           InstallMedia-BaseOS     58 k
 fontconfig-devel      x86_64 2.13.1-3.el8          InstallMedia-BaseOS    151 k
 ksh                   x86_64 20120801-254.0.1.el8  InstallMedia-AppStream 927 k
 libaio-devel          x86_64 0.3.112-1.el8         InstallMedia-BaseOS     19 k
 libnsl                x86_64 2.28-101.0.1.el8      InstallMedia-BaseOS     97 k
 sysstat               x86_64 11.7.3-2.el8          InstallMedia-AppStream 426 k
Installing dependencies:
 bzip2-devel           x86_64 1.0.6-26.el8          InstallMedia-BaseOS    224 k
 expat-devel           x86_64 2.2.5-3.el8           InstallMedia-BaseOS     55 k
 freetype-devel        x86_64 2.9.1-4.el8           InstallMedia-BaseOS    464 k
 libpng-devel          x86_64 2:1.6.34-5.el8        InstallMedia-BaseOS    327 k
 libuuid-devel         x86_64 2.32.1-22.el8         InstallMedia-BaseOS     95 k
 lm_sensors-libs       x86_64 3.4.0-21.20180522git70f7e08.el8
                                                    InstallMedia-BaseOS     59 k
 zlib-devel            x86_64 1.2.11-13.el8         InstallMedia-BaseOS     57 k

Transaction Summary
=================================================================================
설치  13 Packages

Total size: 2.9 M
Installed size: 9.5 M
Is this ok [y/N]: y
패키지 다운로드중:
경고: /mnt/BaseOS/Packages/bzip2-devel-1.0.6-26.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Oracle Linux 8 - BaseOS                          3.0 MB/s | 3.1 kB     00:00
GPG키 0xAD986DA3를 불러옵니다:
 사용자     : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
  GPG 지문: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
 출처        : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
성공적으로 가져온 키
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
트랜잭션 테스트가 완료되었습니다.
거래 실행 중
  준비 중입니다  :                                                           1/1
  Installing     : zlib-devel-1.2.11-13.el8.x86_64                          1/13
  Installing     : libpng-devel-2:1.6.34-5.el8.x86_64                       2/13
  Installing     : lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_6    3/13
  스크립틀릿 실행: lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_6    3/13
  Installing     : libuuid-devel-2.32.1-22.el8.x86_64                       4/13
  Installing     : expat-devel-2.2.5-3.el8.x86_64                           5/13
  Installing     : bzip2-devel-1.0.6-26.el8.x86_64                          6/13
  Installing     : freetype-devel-2.9.1-4.el8.x86_64                        7/13
  Installing     : fontconfig-devel-2.13.1-3.el8.x86_64                     8/13
  Installing     : sysstat-11.7.3-2.el8.x86_64                              9/13
  스크립틀릿 실행: sysstat-11.7.3-2.el8.x86_64                              9/13
  Installing     : elfutils-libelf-devel-0.178-7.el8.x86_64                10/13
  Installing     : ksh-20120801-254.0.1.el8.x86_64                         11/13
  스크립틀릿 실행: ksh-20120801-254.0.1.el8.x86_64                         11/13
  Installing     : libnsl-2.28-101.0.1.el8.x86_64                          12/13
  Installing     : libaio-devel-0.3.112-1.el8.x86_64                       13/13
  스크립틀릿 실행: libaio-devel-0.3.112-1.el8.x86_64                       13/13
  확인 중        : bzip2-devel-1.0.6-26.el8.x86_64                          1/13
  확인 중        : elfutils-libelf-devel-0.178-7.el8.x86_64                 2/13
  확인 중        : expat-devel-2.2.5-3.el8.x86_64                           3/13
  확인 중        : fontconfig-devel-2.13.1-3.el8.x86_64                     4/13
  확인 중        : freetype-devel-2.9.1-4.el8.x86_64                        5/13
  확인 중        : libaio-devel-0.3.112-1.el8.x86_64                        6/13
  확인 중        : libnsl-2.28-101.0.1.el8.x86_64                           7/13
  확인 중        : libpng-devel-2:1.6.34-5.el8.x86_64                       8/13
  확인 중        : libuuid-devel-2.32.1-22.el8.x86_64                       9/13
  확인 중        : lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_6   10/13
  확인 중        : zlib-devel-1.2.11-13.el8.x86_64                         11/13
  확인 중        : ksh-20120801-254.0.1.el8.x86_64                         12/13
  확인 중        : sysstat-11.7.3-2.el8.x86_64                             13/13

설치됨:
  bzip2-devel-1.0.6-26.el8.x86_64
  elfutils-libelf-devel-0.178-7.el8.x86_64
  expat-devel-2.2.5-3.el8.x86_64
  fontconfig-devel-2.13.1-3.el8.x86_64
  freetype-devel-2.9.1-4.el8.x86_64
  ksh-20120801-254.0.1.el8.x86_64
  libaio-devel-0.3.112-1.el8.x86_64
  libnsl-2.28-101.0.1.el8.x86_64
  libpng-devel-2:1.6.34-5.el8.x86_64
  libuuid-devel-2.32.1-22.el8.x86_64
  lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_64
  sysstat-11.7.3-2.el8.x86_64
  zlib-devel-1.2.11-13.el8.x86_64

완료되었습니다!

오라클 설치에 필요한 패키지들을 설치합니다.

필수 패키지 설치 확인
rpm -qa bc
rpm -qa binutils
#rpm -qa dtrace-utils
rpm -qa elfutils-libelf
rpm -qa elfutils-libelf-devel
rpm -qa fontconfig-devel
rpm -qa glibc
rpm -qa glibc-devel
rpm -qa ksh
rpm -qa libaio
rpm -qa libaio-devel
#rpm -qa libdtrace-ctf-devel
rpm -qa libXrender
rpm -qa libX11
rpm -qa libXau
rpm -qa libXi
rpm -qa libXtst
rpm -qa libgcc
rpm -qa libnsl
rpm -qa librdmacm
rpm -qa libstdc++
rpm -qa libstdc++-devel
rpm -qa libxcb
rpm -qa libibverbs
rpm -qa make
rpm -qa smartmontools
rpm -qa sysstat
[root@node1 ~]# rpm -qa bc
bc-1.07.1-5.el8.x86_64
[root@node1 ~]# rpm -qa binutils
binutils-2.30-73.0.1.el8.x86_64
[root@node1 ~]# rpm -qa elfutils-libelf
elfutils-libelf-0.178-7.el8.x86_64
[root@node1 ~]# rpm -qa elfutils-libelf-devel
elfutils-libelf-devel-0.178-7.el8.x86_64
[root@node1 ~]# rpm -qa fontconfig-devel
fontconfig-devel-2.13.1-3.el8.x86_64
[root@node1 ~]# rpm -qa glibc
glibc-2.28-101.0.1.el8.x86_64
[root@node1 ~]# rpm -qa glibc-devel
glibc-devel-2.28-101.0.1.el8.x86_64
[root@node1 ~]# rpm -qa ksh
ksh-20120801-254.0.1.el8.x86_64
[root@node1 ~]# rpm -qa libaio
libaio-0.3.112-1.el8.x86_64
[root@node1 ~]# rpm -qa libaio-devel
libaio-devel-0.3.112-1.el8.x86_64
[root@node1 ~]# rpm -qa libXrender
libXrender-0.9.10-7.el8.x86_64
[root@node1 ~]# rpm -qa libX11
libX11-1.6.8-3.el8.x86_64
[root@node1 ~]# rpm -qa libXau
libXau-1.0.8-13.el8.x86_64
[root@node1 ~]# rpm -qa libXi
libXi-1.7.9-7.el8.x86_64
[root@node1 ~]# rpm -qa libXtst
libXtst-1.2.3-7.el8.x86_64
[root@node1 ~]# rpm -qa libgcc
libgcc-8.3.1-5.0.3.el8.x86_64
[root@node1 ~]# rpm -qa libnsl
libnsl-2.28-101.0.1.el8.x86_64
[root@node1 ~]# rpm -qa librdmacm
librdmacm-26.0-8.el8.x86_64
[root@node1 ~]# rpm -qa libstdc++
libstdc++-8.3.1-5.0.3.el8.x86_64
[root@node1 ~]# rpm -qa libstdc++-devel
libstdc++-devel-8.3.1-5.0.3.el8.x86_64
[root@node1 ~]# rpm -qa libxcb
libxcb-1.13.1-1.el8.x86_64
[root@node1 ~]# rpm -qa libibverbs
libibverbs-26.0-8.el8.x86_64
[root@node1 ~]# rpm -qa make
make-4.2.1-10.el8.x86_64
[root@node1 ~]# rpm -qa smartmontools
smartmontools-6.6-3.el8.x86_64
[root@node1 ~]# rpm -qa sysstat
sysstat-11.7.3-2.el8.x86_64

오라클 설치에 필요한 패키지가 모두 설치되었는지 확인합니다.

  • 레이블 없음