RHEL6.1Server software problems

Source: Internet
Author: User
After downloading an RHEL6.1Server and installing it to VirtualBox, we found that RHEL6.1 does not support the installation of custom partitions and software packages. After the system is installed and restarted, the system is found to be pitted: almost none of the common software is installed, and no vim! Therefore, mount the iso image to/mnt/iso, find the vim rpm package, and install the image according to the conventional installation method. But the question of "lack of dependency packages" is displayed. If you continue to install the dependency packages one by one, it is estimated that an RHEL6.1 Server will be downloaded and installed in VirtualBox, we found that this RHEL6.1 does not support the installation of custom partitions and custom software packages.

After the system is installed and restarted, the system is found to be pitted: almost none of the common software is installed, and no vim! Therefore, mount the iso image to/mnt/iso, find the vim rpm package, and install the image according to the conventional installation method.

But the question of "lack of dependency packages" is displayed. If you continue to install dependency packages one by one, it is estimated that you will be crazy, unless you are born to be a tough person.

Fortunately, yum has been installed and can be used. Thanks to this yellow dog, it can help you automatically find and install the required software packages.

The default configuration of yum is to download the software package from the network, but you will be surprised to find that you have not automatically obtained the IP address at this time. Besides, the speed of obtaining software from the Internet is also unsatisfactory.

Install it locally, right? Use the software that comes with the iso image as the software source.

Now you need to set the yum configuration file

First, go to the/etc/yum. repos. d directory and run the touch command to create a local. repo file in the directory,

[Root @ localhost yum. repos. d] # touch local. repo

Now we have to edit the local. repo file. As we just said, we can't even use vim. Don't worry. We have a great cat. Thank you for this cat!

Cat can also be used as a simple editor. You can use the redirection symbol to write the text into the file.

[Root @ localhost yum. repos. d] #Cat> local. repo

The terminal is waiting for you to enter the text, enter the following content, and pressCtrl + DAfter the input is completed, the system automatically saves the text to the local. repo file.

[Local]
Name = local_repo
Baseurl = file: // mnt/iso
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

Pay attention to the baseurl above. This is the Mount point of our iso image. My mount point is/mnt/iso.

Run the yum clean all command to reset the yum configuration. then install your favorite software, yum install vim.

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.