Oracle Linux yum setup

Source: Internet
Author: User

Today, I downloaded Oracle Linux 6.1 and installed it on a virtual machine. I am going to use it to install ORACLE 11G R2 (11.2.0.3). I suddenly found that yum cannot be used. I found it online, find the SETUP document on the http://public-yum.oracle.com/website.
Getting Started

  1. Download and Install Oracle Linux
  2. Download and copy the appropriate yum configuration file in place, by running the following commands as root:

    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
  3. Enable the appropriate repository by editing the yum configuration file

    • Open the yum configuration file in a text editor
    • Locate the section in the file for the repository you plan to update from, e.g.[el4_u6_base]
    • Changeenabled=0Toenabled=1
  4. Begin using yum, for example:

    Yum list

    Yum install firefox

Related Article

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.