The difference between Redhat6 and CENTOS7 in Yum applications

Source: Internet
Author: User

Recently tried various versions of installing the ORACLE11 database on the virtual machine, found some differences in the Linux configuration, on Centos7, Yum is self-equipped with configuration information, can be installed directly when installing the RPM package required by Oracle. However, you need to first configure the Yum information on Redhat:

1 mount the virtual optical drive first to create an empty folder

Mkdir/dvd

mount/dev/sr0/dvd/

CD/DVD

LS can see the information in the Linux installation disk

2 cd/etc/yum.pepos.d/

LS will appear Rhel-source.repo

Vim Rhel-source.repo View the information inside to be aware of what's inside.

Then delete the re-established one, Dvd.repo can define its own name. RM-RF Rhel-source.repo

Vim Dvd.repo

Create and open a file that ends in. Repo

[DVD]

Name=dvd equals sign can be filled in as much as possible before the name repo.

Baseurl=file:///dvd the URL of the specified source locally with file://

gpgcheck=0 If you set gpgcheck=0 do not detect gpgkey, you do not check the file signature, you do not need to specify the location of the Gpgkey (recommended to use this article)

3 Yum Clean all clear Yum cache file

Yum List lists the packages for the Yum source

4 when Setup is complete, you can install it using the Yum command

In this process to pay attention to the use of RPM and Yum Online has a lot of relevant tutorials, you can refer to. Suggestions or the basic knowledge to fight, more contact, I was in the virtual machine on the release of the version installed, unloading, to apply the discovery of Linux update.




The difference between Redhat6 and CENTOS7 in Yum applications

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.