Install the vbox enhancement function configuration software source RPMforge in CentOS 6

Source: Internet
Author: User

Install the vbox enhancement function configuration software source RPMforge in CentOS 6

After CentOS6 is released, many people who like RedHat can't wait to download and install it. The same is true for me, But I installed it in vbox, in the process of enhancing vbox functions and Configuring software source RPMforge, we also encountered various problems. After five installation, we solved the problems.

1. Enhanced vbox installation in CentOS 6Step 1: switch to the root user su-enter the root password
2. install gcc yum install gcc
3. Install the kernel-devel of the kernel version.

# Version = 'uname-a | awk' {print $3 }''

# Yum install kernel-devel-$ {version}

After the installation is complete, click "device in vbox --" to install the enhancement function. Follow the prompts. After clicking the automatic running of the disc that appears, enter the root password to install it.


Some people think that it is not necessary to install dkms (dkms = Dynamic Kernel Module Support (DKMS) and execute yum install dkms after step 3, even if you install rpmforge directly, the system prompts a failure. After rpmforge is configured, the system can be installed normally.

2. Configure the software source rpmforge

When running yum install flash-plugin or yum installmplayer in CentOS, why is this software not found in the prompt library? Why? Because CentOS is compiled by RHEL, it removes all copyright issues. Therefore, many software cannot be directly installed using yum install without using a third-party software library.

The EPEL (Extra Packages for EnterpriseLinux) software library provides a re-compiled Fedora component for the RHEL series (4.X, 5.x, 6.x, etc. This software library has worked hard without replacing system components. In some cases, it tries to solve the problem of CentOS compatibility directly, but it firmly denies the compatibility between software libraries as one of the goals. When it is used together with other third-party software libraries, problems may occur. Therefore, when you use EPEL, especially when you use components of other component libraries, make sure that you use the yum Priorities plug-in.

The RPMForge library now has more than 10000 CentOS software packages, which is considered by the CentOS community as the safest and most stable third-party software library.

The following describes how to use EPEL, RPMForge, and RPMFusion software repositories:

1. Install the yum-priorities plugin.

This plug-in is used to set the order in which yum calls the software source. Because the official software sources are relatively stable and recommended. Therefore, the order of the official source is higher than that of the third source. To ensure this order, you need to install the yum-priorities plug-in.

[Root @ CentOS ~] # Yum install yum-priorities

After installation, you need to set/etc/yum. repos. d/directory. repo-related files, such as CentOS-Base.repo, insert sequence instructions in these files: priority = N (N is a positive integer from 1 to 99, the smaller the value, the higher priority ), the general configuration is as follows:
[Base], [addons], [updates], [extras]… Priority = 1
[CentOSplus], [contrib]… Priority = 2
Third-party software source: priority = N (N> 10 recommended)

For example, my CentOS-Base.repo configuration is (CentOS 6.0 ):
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for CentOS updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#
[Base]
Name = CentOS-$ releasever-Base
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS
# Baseurl = http://developer.centos.org/centos/?releasever/ OS /?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 1

# Released updates
[Updates]
Name = CentOS-$ releasever-Updates
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates
# Baseurl = http://developer.centos.org/centos/?releasever/updates/?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 1

# Packages used/produced in the build but not released
[Addons]
Name = CentOS-$ releasever-Addons
Using list = http://mirrorlist.CentOS.org /? Release = $ releasever & arch = $ basearch & repo = addons
# Baseurl = http://developer.centos.org/centos/?releasever/addons/?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 1

# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras
# Baseurl = http://developer.centos.org/centos/?releasever/extras/?basearch/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 1

# Additional packages that extend functionality of existing packages
[Centosplus]
Name = CentOS-$ releasever-Plus
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus
# Baseurl = http://developer.centos.org/centos/?releasever/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 2

# Contrib-packages by Centos Users
[Contrib]
Name = CentOS-$ releasever-Contrib
Using list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contrib
# Baseurl = http://developer.centos.org/centos/?releasever/contrib/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Priority = 2
  • 1
  • 2
  • 3
  • Next Page

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.