How to install software using yum in RedHat6.0Enterprise Enterprise Edition

Source: Internet
Author: User
Linux is very stable, but sometimes software installation is dependent, so installing the software is very troublesome. Fortunately, yum can solve the dependency relationship, first install the yum software package according to the following sequence: 1. use a Local CD: Put the linux system installation disk into the optical drive, and then run mount/dev/cdrom/mnt to configure the yum file: vi/etc/yum. repos. d/yum. the repo file is to be created. You can create a repo file by name, but it must be completed by repo.

Linux is very stable, but sometimes software installation is dependent, so installing the software is very troublesome. Fortunately, yum can solve the dependency relationship, first, install the yum software package according to the following sequence:

1. Use a Local CD:
Put the linux system installation disk into the optical drive, and then execute:
Mount/dev/cdrom/mnt
Configure the yum file as follows:
Vi/etc/yum. repos. d/yum. repo this file is to be created. You can create a file by name, but it must end with a repo.
[Aaaa]
Name = bbbbb
Baseurl = file: // mnt/Packages
Enabled = 1
Gpgcheck = 0
Press esc, and then wq is saved and exited. You can use yum list to list the CD installation packages. If yes, you need to clear the yum cache and use yum clean all, use yum install *** when installing the service, such as yum install bind, to solve the dependency.

2. Use a local Folder:
We first cp all the data on the linux installation disk to the system, for example, copying to/date. Run the command to copy: cp-a/mnt/*/date. This is to copy all the content in the current file to/date.
Then install the following software package, mainly to build the environment
Rpm-ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Rpm-ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Rpm-ivh createrepo-0.9.8-4.el6.noarch.rpm

Edit the yum File
Vi/etc/yum. repos. d/yum. repo Add the following content:
[Aaaaaa2] This is a name that can be written at will.
Name = yumaaa2 is equivalent to the tag and can be written at will.
Baseurl = file: // date/Packages path must point to the correct path containing Packages
Enabled = 1 enabled or not, 1 is enabled, 0 is disabled
Gpgcheck = 0 whether to check the key, set to not check
Then cd/date/Packages
Run:
Createrepo-v.
In this way, the yum Automatic Execution file is generated. After successful installation, you can use the original yum installation software!

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.