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