Two local yum source configuration methods: Oracle database software depends on many software packages. If you use rpm commands to add one by one, it is very troublesome and the dependency between software packages is annoying. During installation, you can select yum to install the oracle-validated package to solve the dependency package of oracle Database software with one click. The following describes
Two local yum source configuration methods: Oracle database software depends on many software packages. If you use rpm commands to add one by one, it is very troublesome and the dependency between software packages is annoying. During installation, you can select yum to install the oracle-validated package to solve the dependency package of oracle Database software with one click. The following describes
Two local yum source configuration methods are briefly introduced.
Oracle Database Software depends on many software packages. If you use rpm commands to add one by one, it is very troublesome and the dependency between software packages is annoying.
During installation, you can select yum to install the oracle-validated package to solve the dependency package of oracle Database software with one click.
The following describes how to install the software package in yum:
1. on a machine that cannot connect to the internet, you can configure a local yum source to install the software package (oracle linux 5 is used as an example here)
If only iso files are available
# Mount-o loop/u02/OracleLinux-R5-U8-Server-x86_64-dvd.iso/mnt
# Ll/mnt
Total 732
-Rw-r -- 1 root 5165 Feb 29 2012 blafdoc.css
Drwxr-xr-x 3 root 2048 Feb 29 2012 Cluster
Drwxr-xr-x 3 root 4096 Feb 29 2012 ClusterStorage
-Rw-r -- 1 root 6830 Feb 29 2012 EULA
-Rw-r -- 1 root 7041 Feb 29 2012 eula. en_US
-Rw-r -- 1 root 3334 Feb 29 2012 eula. py
-Rw-r -- 1 root 18390 Feb 29 2012 GPL
Drwxr-xr-x 4 root 2048 Feb 29 2012 images
Drwxr-xr-x 2 root 2048 Feb 29 2012 isolinux
-Rw-r -- 1 root 3547 Feb 29 2012 README-en
-Rw-r -- 1 root 7897 Feb 29 2012 README-en.html
-Rw-r -- 1 root 35456 Feb 29 2012 RELEASE-NOTES-en
-Rw-r -- 1 root 38444 Feb 29 2012 RELEASE-NOTES-en.html
-Rw-r -- 1 root 1397 Feb 29 2012 RPM-GPG-KEY
-Rw-r -- 1 root 1397 Feb 29 2012 RPM-GPG-KEY-oracle
Drwxr-xr-x 4 root 593920 Feb 29 2012 Server
-Rw-r -- 1 root 105 Feb 29 2012 supportinfo
-R -- 1 root 4436 Feb 29 2012 TRANS. TBL
Drwxr-xr-x 3 root 8192 Feb 29 2012 VT
# Cd/etc/yum. repos. d
-- Rename other repo files
# Ls
Public-yum-el5.repo.1 public-yum-el5.repo.2 public-yum-el5.repo.bk
-- Create a new repo file. The Server folder is the path of the rpm package.
# Vi local_yum_el5.repo
[Oelr5u8]
Name = oelr5u8
Baseurl = file: // mnt/Server
Gpgcheck = 0
Enabled = 1
# Yum clean all
# Yum list
# Yum install oracle-validated
Ii. Finally, I will introduce how to use httpd to configure the yum server.
-- 1. Create a local database
# Mkdir-p/mnt/cdr/iso
# Mount-o loop/u02/OracleLinux-R5-U8-Server-x86_64-dvd.iso/mnt/cdr/iso
# Cd/mnt/cdr
-- Create a repo file (which takes some time) or cp ????
# Createrepo.
3380/3380-iso/VT/xen-devel-3.0.3-135.el5.x86_64.rpm 5-1.el5.x86_64.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
-- Back up other repo files
# Ls/etc/yum. repos. d/
Local_yum_el5.repo.bk public-yum-el5.repo.1 public-yum-el5.repo.2 public-yum-el5.repo.bk
# Vi myyum. repo
[Oelr5u8]
Name = oelr5u8
Baseurl = file: // mnt/cdr
Gpgcheck = 0
Enabled = 1
# Yum clean all
-- 2. Share with httpd
# Vi/etc/httpd/conf/httpd. conf
ServerAdmin root@192.168.100.17
DocumentRoot/mnt
ServerName 192.168.100.17
# Httpd-t
# Service httpd start
-- 3. Client Configuration
Vi/etc/yum. repos. d/my. repo
[Oelr5u8]
Name = oelr5u8
Baseurl = http: // 192.168.100.17/cdr
Gpgcheck = 0
Enabled = 1
# Yum list
# Yum install oracle-validated