rpm
RPM is an acronym for Red-Hat Package Manager (RPM Package Manager) is
Package Type
Binary packages: have been edited using the GCC
tar source package: needs to be compiled
Obtaining rpm package
1, the system need to mount the mirror
2, the site rpmfind.net
3. For example, install mysql nginx, etc., you can go to their official website to download the corresponding
Install, upgrade, uninstall, query, verify, database maintenance
Package Name Description
rpm installation
Typically mounted directly through the base package (mirror) is mounted, but without many basic package (Docker, etc.), can be expanded by the package epel
epel is to build a strong community of free open-source release package repository.
EPEL, namely Extra Packages for Enterprise Linux for short, is a set of high-quality extra packages for Enterprise Linux provided, including but not limited to Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL). (About: EPEL)
Method One: yum command to install
yum install epel-release -y
Method two: manual installation
Select the appropriate type for the system architecture: http://dl.fedoraproject.org/pub/epel/7/ . We use the x86_64, will enter looking respective packets, the directory installation is as follows:
# rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
If the report conflicts, packet collisions can be deleted
yum remove epel-release
or:
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# rpm -vih epel-release-7-2.noarch.rpm
update data
yum clean all && yum makecache
rpm -ivh your-package
rpm query
yum
Definitions: Yum (called the Yellow dog Updater, Modified) is a well in Fedora and RedHat CentOS of Shell distal package manager. Based on RPM package management, can automatically download from the specified server RPM package and installed, you can automatically handle dependencies, and install all packages depending on, again and again without the cumbersome download and installation. (RPM install will install themselves relations). cs architecture.
Yum configuration source. Ali cloud mirroring or local network and so yum sources can be
wget
download
wget -O http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Download the file storage folder -O
1, the installation: yum install software
2. Upgrade: yum update Software
3. Delete: yum remove software
4, view: yum info Software
5, search software: yum search software
6, view dependencies: yum deplist software
7, view the installed software: yum list installded
-e silent execution
-t ignore errors
-R & lt [min] set waiting time
-y Automatically answer yes
check-update check may be updated package
clean all Clear all
clean packages Clear the temporary package file (/ var / cache / yum the document)
clean headers clear the header file rpm
clean oldheaders clear out old header files rpm
List of dependencies deplist
list update and install RPM packages
list installed installed package
list extras package and not in the repository has been installed
info update and install the package information RPM
info installed installed packets (similar -qa parameter)
install [RPM packages] installation package
localinstall local installation RPM package
update [RPM package] update package
Upgrade to upgrade the system
search [keyword] Search package
provides [keyword] search for specific file names package
reinstall [RPM packages] re-installation package
repolist display configuration repository
resolvedep specify dependencies
remove [RPM packages] unload package
Reference Documents
https://www.cnblogs.com/gmlkl/p/9354254.html