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.
When you view windows files under Linux, there are often garbled or unreadable situ
Fedora is a kind of Linux system, most of the operations also need commands to complete, there are u
For users, the constant update of Linux and Windows has caused competition between the two. Users ca
In the process of using Linux, we sometimes encounter the exhaustion of swap memory
How Linux Expands Disks under VMware
CentOS 6.6 system installation steps
What can I do if arm-linux-insight cannot set target under Linux?
Steps for Linux installation and configuration of GoLang development environment
How to deal with the database disappeared after modifying the root password of mysql under Linux?
Linux how to create and delete swap partitions
Ubuntu system uses Node.js to run Hello world method
Linux system to find ways to replace non-UTF-8 encoded files
Linux Shell text processing command summary
Linux vim shows utf-8 document garbled how to do?
Linux system how to install and configure ClusterShell tool
How to Troubleshoot Malicious Outbox Behavior on Linux Servers
Win10 Mobile is very effective, 23% of UK companies are optimistic about Win10 Mobile
How to disable the modern lock screen function of Win8 and Win8.1
WinXP prompts can't locate a quick solution for program input point on dynamic link library
Usb transmission speed optimization method public
What should I do if Win10's newly set PIN code cannot be logged in?
A variety of easy ways to help you find the running window in the Win7 system
There is no CD how to reinstall the system win7
"Files are missing or corrupted in Windows\\System32\\Config\\System" Repair