내맘대로긍정이 알려주는
Oracle 23ai 신기능
무료 세미나 발표자료
다운로드
trending_flat
OS환경 : Oracle Linux 7.6 (64bit)
방법 : Oracle Linux 7에서 로컬 yum repository 설정하기
먼저 cd에 있는 패키지를 담을 경로 생성
1 | # mkdir -p /localrepo |
cd 파일을 해당 디렉토리로 복사
(내 cd 파일 경로 /run/media/root/OL-7.6\ Server.x86_64/Packages/)
1 | # cp -rv /run/media/root/OL-7.6\ Server.x86_64/Packages/ /localrepo/ |
기존 Online Repository 설정 파일 이름 변경
1 2 3 4 5 6 7 | # cd /etc/yum.repos.d/ # ls -al total 32 drwxr-xr-x. 2 root root 83 Nov 12 08:38 . drwxr-xr-x. 146 root root 8192 Nov 12 17:03 .. -rw-r--r--. 1 root root 13093 Nov 2 2018 public-yum-ol7.repo # mv public-yum-ol7.repo public-yum-ol7.repobak |
새로운 로컬 repository 설정
1 2 3 4 5 6 | # vi /etc/yum.repos.d/local.repo [local] name=localrepository baseurl=file:///localrepo/ enabled=1 gpgcheck=0 |
Local Repository 업데이트
1 2 3 4 5 6 7 8 9 10 | # createrepo /localrepo/ Spawning worker 0 with 5241 pkgs yum clean all Workers Finished Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete |
/localrepo 디렉토리 밑에 repodata 디렉토리가 생겼는지 확인
1 2 3 4 5 6 | # ls -al /localrepo/ total 352 drwxr-xr-x. 4 root root 38 Nov 12 17:09 . dr-xr-xr-x. 18 root root 4096 Nov 12 08:09 .. drwxr-xr-x. 2 root root 274432 Nov 12 07:29 Packages drwxr-xr-x. 2 root root 4096 Nov 12 17:09 repodata |
repomd.xml 파일이 생성되었는지 확인
1 2 3 4 5 6 7 8 | # ls 35b5a30cc34c9d2db21706541b6885d8c6d047c2de39d4bda5b2c98b8afea27c-other.xml.gz 8d34ced6e2b49dcf62b34796c553434c8a95d9d5dfffce6fe26b06e5b410c9ec-filelists.sqlite.bz2 b89cce3f60e2b483a054ae329e664bb501434e01c6027958dfcf88eebd562f0f-primary.xml.gz ce3b2889a285d2910c8e5a30387183c5188e9606d61ba62c865c12035ac1bbc8-filelists.xml.gz e6e9cc97d67502512227d5e762779e30ac3482150a2b20883e0d39a2f1a8a0db-primary.sqlite.bz2 fad50d91cc416a3498f898cc298d64fc34b345c5cea9a5877493452d5dd5feec-other.sqlite.bz2 repomd.xml |
기존 yum data 삭제
1 2 3 4 5 | # yum clean all Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### Cleaning repos: local Other repos take up 145 M of disk space (use --verbose for details) |
repolist 불러오기
1 2 3 4 5 6 7 8 | # yum repolist Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### local | 2.9 kB 00:00:00 local/primary_db | 5.0 MB 00:00:00 repo id repo name status local localrepository 5,134 repolist: 5,134 |
잘 작동하는지 확인차 ruby 설치
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | # yum install ruby Loaded plugins: langpacks, nvidia, ulninfo #### NVIDIA #### Resolving Dependencies --> Running transaction check ---> Package ruby.x86_64 0:2.0.0.648-33.el7_4 will be installed --> Processing Dependency: ruby-libs(x86-64) = 2.0.0.648-33.el7_4 for package: ruby-2.0.0.648-33.el7_4.x86_64 --> Processing Dependency: rubygem(bigdecimal) >= 1.2.0 for package: ruby-2.0.0.648-33.el7_4.x86_64 --> Processing Dependency: ruby(rubygems) >= 2.0.14.1 for package: ruby-2.0.0.648-33.el7_4.x86_64 --> Processing Dependency: libruby.so.2.0()(64bit) for package: ruby-2.0.0.648-33.el7_4.x86_64 --> Running transaction check ---> Package ruby-libs.x86_64 0:2.0.0.648-33.el7_4 will be installed ---> Package rubygem-bigdecimal.x86_64 0:1.2.0-33.el7_4 will be installed ---> Package rubygems.noarch 0:2.0.14.1-33.el7_4 will be installed --> Processing Dependency: rubygem(rdoc) >= 4.0.0 for package: rubygems-2.0.14.1-33.el7_4.noarch --> Processing Dependency: rubygem(psych) >= 2.0.0 for package: rubygems-2.0.14.1-33.el7_4.noarch --> Processing Dependency: rubygem(io-console) >= 0.4.2 for package: rubygems-2.0.14.1-33.el7_4.noarch --> Running transaction check ---> Package rubygem-io-console.x86_64 0:0.4.2-33.el7_4 will be installed ---> Package rubygem-psych.x86_64 0:2.0.0-33.el7_4 will be installed ---> Package rubygem-rdoc.noarch 0:4.0.0-33.el7_4 will be installed --> Processing Dependency: ruby(irb) = 2.0.0.648 for package: rubygem-rdoc-4.0.0-33.el7_4.noarch --> Processing Dependency: rubygem(json) >= 1.7.7 for package: rubygem-rdoc-4.0.0-33.el7_4.noarch --> Running transaction check ---> Package ruby-irb.noarch 0:2.0.0.648-33.el7_4 will be installed ---> Package rubygem-json.x86_64 0:1.7.7-33.el7_4 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: ruby x86_64 2.0.0.648-33.el7_4 local 70 k Installing for dependencies: ruby-irb noarch 2.0.0.648-33.el7_4 local 91 k ruby-libs x86_64 2.0.0.648-33.el7_4 local 2.8 M rubygem-bigdecimal x86_64 1.2.0-33.el7_4 local 82 k rubygem-io-console x86_64 0.4.2-33.el7_4 local 53 k rubygem-json x86_64 1.7.7-33.el7_4 local 79 k rubygem-psych x86_64 2.0.0-33.el7_4 local 82 k rubygem-rdoc noarch 4.0.0-33.el7_4 local 321 k rubygems noarch 2.0.14.1-33.el7_4 local 219 k Transaction Summary ============================================================================================================================= Install 1 Package (+8 Dependent packages) Total download size: 3.8 M Installed size: 13 M Is this ok [y/d/N]: y Downloading packages: ----------------------------------------------------------------------------------------------------------------------------- Total 163 MB/s | 3.8 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : ruby-libs-2.0.0.648-33.el7_4.x86_64 1/9 Installing : rubygem-bigdecimal-1.2.0-33.el7_4.x86_64 2/9 Installing : rubygem-json-1.7.7-33.el7_4.x86_64 3/9 Installing : rubygem-psych-2.0.0-33.el7_4.x86_64 4/9 Installing : rubygem-io-console-0.4.2-33.el7_4.x86_64 5/9 Installing : rubygems-2.0.14.1-33.el7_4.noarch 6/9 Installing : ruby-2.0.0.648-33.el7_4.x86_64 7/9 Installing : ruby-irb-2.0.0.648-33.el7_4.noarch 8/9 Installing : rubygem-rdoc-4.0.0-33.el7_4.noarch 9/9 Verifying : ruby-2.0.0.648-33.el7_4.x86_64 1/9 Verifying : ruby-libs-2.0.0.648-33.el7_4.x86_64 2/9 Verifying : rubygem-bigdecimal-1.2.0-33.el7_4.x86_64 3/9 Verifying : rubygems-2.0.14.1-33.el7_4.noarch 4/9 Verifying : rubygem-json-1.7.7-33.el7_4.x86_64 5/9 Verifying : rubygem-rdoc-4.0.0-33.el7_4.noarch 6/9 Verifying : rubygem-psych-2.0.0-33.el7_4.x86_64 7/9 Verifying : rubygem-io-console-0.4.2-33.el7_4.x86_64 8/9 Verifying : ruby-irb-2.0.0.648-33.el7_4.noarch 9/9 Installed: ruby.x86_64 0:2.0.0.648-33.el7_4 Dependency Installed: ruby-irb.noarch 0:2.0.0.648-33.el7_4 ruby-libs.x86_64 0:2.0.0.648-33.el7_4 rubygem-bigdecimal.x86_64 0:1.2.0-33.el7_4 rubygem-io-console.x86_64 0:0.4.2-33.el7_4 rubygem-json.x86_64 0:1.7.7-33.el7_4 rubygem-psych.x86_64 0:2.0.0-33.el7_4 rubygem-rdoc.noarch 0:4.0.0-33.el7_4 rubygems.noarch 0:2.0.14.1-33.el7_4 Complete! |
정상적으로 작동함
참조 : https://positivemh.tistory.com/109
'Linux, Unix > Tip' 카테고리의 다른 글
Ubuntu Linux 20.04 최초 접속 시 root 패스워드 초기화 (2) | 2020.06.03 |
---|---|
리눅스 용량 많이 차지하는 파일, 폴더 찾기 (0) | 2020.02.23 |
리눅스 패키지 설치 시 configure, make, make install 명령의 역할 (0) | 2019.10.27 |
ls: cannot open directory .: Input/output error (0) | 2018.11.15 |
crontab root 계정으로 일반유저 쉘 실행 (2) | 2018.11.13 |