How to resolve this system is not a registered with the portal.

Source: Internet
Author: User

Today I have to write this article because I've been working on Linux for a long time when I first came into contact with Linux to install Oracle. Finally was a big brother to help me solve: can only say thank you very much!

I've tried several ways: the first I used Yum's online installation but failed, and then I found out by looking for information that could actually be installed:

1. Download the repo file

Oracle Linux 4, Update 6 or newer

# CD/ETC/YUM.REPOS.D

# MV Oracle-base.repo oracle-base.repo.disabled

# wget Http://public-yum.oracle.com/public-yum-el4.repo


Oracle Linux 5

# CD/ETC/YUM.REPOS.D

# wget Http://public-yum.oracle.com/public-yum-el5.repo


Oracle Linux 6

# CD/ETC/YUM.REPOS.D

# wget Http://public-yum.oracle.com/public-yum-ol6.repo

Oracle VM 2

# CD/ETC/YUM.REPOS.D

# wget Http://public-yum.oracle.com/public-yum-ovm2.repo

2. Finally revise the downloaded file and change enabled=0 to Enabled=1

3. You can now install and update patches with Yum

4) Yum Install Libaio-devel
Yum Install Unixodbc-devel

Yum Install Sysstat

To join the local installation, the local repository must figure out what the Yum repository is, and how to configure it:

1. Set up the ISO file directory (/U01/SOFTWARE/ISO) and ISO file mount directory (/U01/SOFTWARE/RHEL5)
# Mkdir/u01/software/iso
# Mkdir/u01/software/rhel5
If you have an existing ISO file, you can upload it directly to the/u01/software/iso directory.

2. If it is a DVD disc (automatically mapped under/dev/cdrom after inserting the server), make the ISO file first
# Cp/dev/cdrom/u01/software/iso/rhel-server-5.4-i386-dvd.iso
or
# dd If=/dev/cdrom of=/u01/software/iso/rhel-server-5.4-i386-dvd.iso

3. Mount the ISO file
# mount-t Iso9660-o loop/u01/software/iso/rhel-server-5.4-i386-dvd.iso/u01/software/rhel5
# df-h
Filesystem Size used Avail use% mounted on
...
/u01/software/iso/rhel-server-5.4-i386-dvd.iso
2.8G 2.8G 0 100%/u01/software/rhel5
# Ll/u01/software/rhel5

4. Ensure that the Yum-related packages are installed in the system
# Rpm-qa |grep Yum
No trouble, install Yum first, but it is usually installed by default.


5. Edit the repo file, first remove or rename the original repo file, that is, to invalidate other repo files, only use the local source
# Mv/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/rhel-debuginfo.repo.enc
# Vi/etc/yum.repos.d/rhel5.repo
-------------------------------------------------------------------------------
[Server]
Name=rhel5server
Baseurl=file:///u01/software/rhel5/server-point to the configuration file for your repository:
enable=1
gpcheck=1
Gpgkey=file:///u01/software/rhel5/rpm-gpg-key-redhat-release
-------------------------------------------------------------------------------
Note that this baseurl points to the server directory, and if you want to install software such as clusters and virtual machines, you also need to establish a baseurl that points to cluster,clusterstorage,vt.

in fact, in my configuration, there is a problem: I hung in the mirror ISO he showed a folder in the middle of a space, and later passed a:Ln-s do soft connection, it is equivalent to a Rhel image alias, you can specify a file name without spaces, to exclude the space problem; so it's going to help.

How to resolve this system is not a registered with the portal.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.