Summary of the method for installing yum in RedHat

Source: Internet
Author: User
You have recently configured several methods for installing software on the server. 1. download the software package, compile and install (./configure, make, makeinstall), and install the software package with higher configuration. I believe that experts are installed in this way. 2. Install yum. It is relatively simple to install. (Yuminstall package name) mainly applies to (CentOS, RedHat) and so on. Uninstall: yumremove package name. 3. apt-get install this and yum Security

You have recently configured several methods for installing software on the server.
1. download the software package, compile and install (./configure, make, make install), and install the software package with higher configuration. I believe that experts are installed in this way.

2. Install yum. It is relatively simple to install. (Yum install package name) mainly applies to (CentOS, Red Hat) and so on.
Uninstall: yum remove package name.

3. Install apt-get, which is similar to yum installation. (Sudo apt-get install package name) mainly applies to (Ubuntu, debian ).
Uninstall: sudo apt-get autoremove uninstalls all related packages.

4. package-based installation: to install the package, you only need to capture the package file of the program.
Install (pkg_add package_name) Remove (pkg_delete package_name) to complete installation/removal.
Note: The file name. tgz ends with package file name .tar.gz and ends with source.
Note: currently, the installed package database is stored in the/var/db/pkg/data folder.

5. Install freebsd using the port tree method ).

The following describes how to install yum in red hat.
1. Download package: wget http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpm.
Of course you can also choose another version: http://yum.baseurl.org/download/2.0/

2. Go to the directory for installation:
Sudo rpmbuild -- rebuild yum-2.0.8-1.src.rpm
Cd/usr/src/RedHat/RPMS/noarch/
Sudo rpm-ivh yum-2.0.8-1.noarch.rpm

3. If an error is reported, run: rpm-ivh-nodeps-replacefiles-force *. rpm.

4. Configure the yum update Address [base]
# Name = Red Hat Linux $ releasever-$ basearch-Base
# Baseurl = http://developer.dulug.duke.edu/pub/yum-repository/redhat/?releasever/#basearch/
Name = Red Hat Linux $ releasever-$ basearch-Base
Base url = http://centos.ustc.edu.cn/centos/4/ OS /i386/
# [Updates]
# Name = Red Hat Linux $ releasever-Updates
# Baseurl = http://developer.dulug.duke.edu/pub/yum-repository/redhat/updates/#releasever/
Name = Red Hat Linux $ releasever-Updates
Base url = http://mirror.centos.org/centos/4/updates/i386/
[Base] # name = Red Hat Linux $ releasever-$ basearch-Base
# Baseurl = http://developer.dulug.duke.edu/pub/yum-repository/redhat/?releasever/#basearch/
Name = Red Hat Linux $ releasever-$ basearch-Base
Base url = http://centos.ustc.edu.cn/centos/4/ OS /i386/

5. update yum: yum update can be used after the update is complete.

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.