Before installing Oracle, you need to configure your system environment, you need to install a lot of RPM packages (take Redhat Linux as an example), it is cumbersome to manually install RPM, and you need to manually resolve dependencies between packages. Yum is a good solution.
The problem, the Yum source has three local Yum repository, FTP Yum Repository, and HTTP Yum repository. The configuration of the FTP Yum repository is described in more detail in subsequent articles. The HTTP Yum Repository configuration method is similar to the local Yum and is no longer described here, this article only describes the configuration process for the local Yum repository.
The configuration process for the local Yum repository (this article takes CDROM for example) 1. To mount a disc to a local
Create a mount point and mount the disc at the Mount point
# mkdir-p/media/cdrom
# Mount/dev/cdrom/media/cdrom 2. Disable the old Yum configuration file
Under directory/etc/yum.repos.d/, edit all Yum configuration files and disable all features of these profiles by setting enabled=0 3. Create Yum configuration files such as the following:/ETC/YUM.REPOS.D /yum.repo)
[Server]
name= linux yum install for oracle --name Description Information
baseurl=file:///media/cdrom/server --yum Library location, Note that you want to use 3 slashes
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key
gpgcheck=0 --0 means no checksum, 1 means checksum
enabled=1 --0 means disabled, 1 is enabled, and countless values enable
by default
If you have more than one library, write the libraries in the format listed above in this configuration file .
4. Clear Yum Cache
#yum Clean All
5. Yum Installation Test
# Yum Repolist--Displays the available Yum libraries
Loaded Plugins:rhnplugin, security
This system is not registered with RHN.
RHN support would be disabled.
Server | 1.3 KB 00:00
Repo ID repo Name Status
Server Linux yum Install for Oracle enabled:3,116
repolist:3,116