YUM--RPM Package Management Tools
How to use:
Yum install-y vim-enhanced (Install vim-enhanced pack)
Yum Remove vim-enhanced (unload vim-enhanced pack)
Yum List (list RPM package Library, network resources)
Yum List |grep vim (List of packages with vim characters, with @ is already installed, not with the installed)
Yum update; Yum upgrade (upgrade all packages of the system)
Yum Grouplist (List of installable kits)
Yum Groupinstall "Chinese (UK) support [EN_GB]" (Install Chinese (UK) support [EN_GB] kit)
Yum Groupremove "Chinese (UK) support [EN_GB]" (Uninstall 中文版 (UK) support [EN_GB] suite)
Yum update vim-enhanced (upgrade vim-enhanced package installed software)
To change the Yum installation source method
Vim/etc/yum.repos.d/centos-base.repo (add Source address)
Change language:
lang=en (language switch to English)
Lang=zh_ch. UTF-8 (language switch to Chinese)
Build a local Yum warehouse
How to use:
Mount/dev/cdrom/mnt (Hanging on CD)
Cp-r Yum.repos.d/yum.repos.d.bak (Backup YUM.REPOS.D folder)
cd/etc/yum.repos.d/
RM-RF Centos-base.repo
Yum list (shows all packages that have been installed locally)
Vim Centos-media.repo (edit Centos-media.repo file)
Switch
[DVD]
Name=install DVD
Baseurl=file:///mnt
Enabled=1
Gpgcheck=0
Download RPM Package
How to use:
Yum Install-y yum-plugin-downloadonly
Yum Install vet--downloadonly--downloaddir=/tmp (Download the vet package to the TMP directory for packages that are not installed)
Yum Reinstall vim-enhanced--downloadonly--downloaddir=/tmp/(Download the installed package to the TMP directory)
Install the source package
How to use:
wget http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-i586.tar.gz (Download JDK package)
Source Package storage location (/usr/local/src/)
mv/root/httpd-2.2.31.tar.bz2/usr/local/src/
Unzip the source package
TAR-JXVF httpd-2.2.31.tar.bz2
Compile and install the source package
Source Package Installation Path
--prefix=/usr/local/apache2 (the number after the installation path is/USR/LOCAL/APACHE2 represents the version number)
Source Installation Configuration
./configure--prefix=/usr/local/apache2 (compile installation, specify path to/usr/local/apache2)
Check configuration return results
echo $? (see if the result returns 0)
Source code Compilation
Make (Compile the source code as machine)
SOURCE Installation
Make install (copy the compiled file to the installation directory)
RMP Package Management
How to use:
Mount the disc first
mount/dev/cdrom/mnt/
Ls/mnt/package
RPM-IVH zip-3.0-1.el6.i686.rpm (Install zip-3.0-1.el6.i686.rpm pack)
RPM-IVH--nodeps yp-tools-2.9-12.el6.i686.rpm (Skip package dependency, Force install YP-TOOLS-2.9-12.EL6.I686.RPM Pack)
RPM-IVH--force yp-tools-2.9-12.el6.i686.rpm (Force install yp-tools-2.9-12.el6.i686.rpm package, even if already installed)
RPM-UVH yp-tools-2.9-12.el6.i686.rpm (Upgrade yp-tools-2.9-12.el6.i686.rpm pack)
Rpm-e Zip (unload zip-3.0-1.el6.i686.rpm pack)
RPM Package Query
How to use:
RPM-QA (querying all installed packages in the system)
Rpm-qa | grep "vim*" (Querying the system for installed packages with VIM)
Rpm-qi yp-tools (Query Yp-tools package information)
RPM-QL yp-tools (query all installation files for the Yp-tools package)
Rpm-qf/bin/vi (query/bin/vi file is installed by which package)
RPM-QF which vim (query which the results of the VIM command are installed by which package)
Common methods of Yum under Linux and the construction of local Yum Warehouse