Step

  
for installing yum on RedHat

yum is the shell front-end package manager, which is the software used to download and install applications under Linux. So how do you install and use yum in RedHat system? The following small series will give you a detailed introduction to the installation of yum in RedHat, let's take a look at it.

recently configured the server software needs to be installed there are several methods.

1. Download the package, compile and install (./configure, make, make install) so that the installation is more configurable. I believe that the master is installed like this.

2.yum installation. This is easier to install. (yum install package name) Mainly applicable to (CentOS, Red Hat) and so on.

Uninstall: yum remove package name.

3.apt-get installation This is similar to the yum installation. (sudo apt-get install package name) is mainly applicable to (Ubuntu, debian).

Uninstall : sudo apt-get autoremove Uninstall all related packages.

4. Install in package mode: Install with package, just grab the package file.

Installation (pkg_add package_name) Remove (pkg_delete package_name) to complete the installation/removal.

Note: The file name .tgz ends with the package file name .tar.gz ends with source .

Note: The package database that is currently installed is placed in the /var/db/pkg/folder.

5. There is also a port tree installation (freebsd).

Here is the red hat to install yum

1. Download package: wget http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src. Rpm.

Of course, you can choose another version: http://yum.baseurl.org/download/2.0/

2. Enter the directory to install:

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 the error is reported: rpm -ivh –nodeps –replacefiles –force *.rpm

4. Configure yum update address [base]

#name=Red Hat Linux $releasever - $basearch - Base

#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

name=Red Hat Linux $releasever - $basearch - Base

baseurl= http://centos.ustc.edu.cn/centos/4/os/i386/

#[updates]

#name=Red Hat Linux $releasever - Updates

#baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates /$releasever/

name=Red Hat Linux $releasever - Updates

baseurl= http://mirror.cent Os.org/centos/4/updates/i386/

[base] #name=Red Hat Linux $releasever - $basearch - Base

#baseurl=http://mirror.dulug .duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

name=Red Hat Linux $releasever - $basearch - Base

baseurl= http://centos .ustc.edu.cn/centos/4/os/i386/

5. Update yum: yum update You can use yum after waiting for the update to complete.

The above is the introduction of RedHat installation yum method, you can download the package using yum, and the dependent software package is safe once, to avoid the tedious one-time download.

Copyright © Windows knowledge All Rights Reserved