1. RPM Tools
RPM Redhat Package Manager, RPM Package name consists of-and. Divided into parts, such as ABRT-CLI-2.0.8-15.E16.CENTOS.I686.RPM,ABRT-CLI is the package name, 2.0.8-15 is the version number, E16 refers to Redhat Enterprise Edition 6,centos means that this is used on CentOS, i686 refers to the platform type. Some RPM packages do not write specific platforms but Noarch, which means that the RPM package does not have a hardware platform limit.
Install a package: Rpm-ivh ...
-I installation-V visualization-H displays installation progress
--force mandatory installation, even if overwriting files belonging to other packages
--nodeps install this package when the RPM package to be installed depends on other packages, even if no other packages are installed
Upgrade: RPM-UVH Filename.rpm-u is upgrade
RPM Uninstallation:
RPM-E filename//The filename here is queried via the RPM query function.
Rpm-qa |grep Libjpeg-turbo-devel
Rpm-e Libjpeg-turbo-devle
Query whether a package is installed
RPM-Q package name (without platform information and suffix name)
Rpm-qa querying all installed RPM packages of the current system
Rpm-qi Query RPM package for information
RPM-QL Package Name: List the files installed by rpm
RPM-QF FileName: Which rpm package a file belongs to, which can be used in conjunction with anti-quotes, such as RPM-QF ' which LS '
2. Yum Tools
Yum list lists all available RPM package resources
Search for a package: Yum search ' keywords ' or yum list|grep ' keywords '
Yum install package; Yum install-y filename (package name)
Yum Uninstall package: Yum remove-y filename (package name)
Yum Upgrade pack: Yum update-y filename (package name)
Yum Find package: Yum provides "*/vim" here with a wildcard, you can find out which package the command is installed from
Yum grouplist List of all packages
Yum Groupinstall Mounting Kit
Yum Groupremove Uninstall Kit
Hands-on: Create a local Yum source
#mount/dev/cdrom/mnt
#cp-R/etc/yum.repos.d/etc/yum.repos.d.bak
#rm-F/etc/yum.repo.d/*
#vim/etc/yum.repos.d/dvd.repo [Add the following]
[DVD]
Name=install DVD
Baseurl=file:///mnt
Enable=1
Gpgcheck=0
#yum list to see if a logo for a DVD appears
Download a RPM package with Yum
#yum install-y Yum-plugin-downloadonly.noarch First need to install a plug-in to support download-only not installed
#yum Install package name-y--downloadonly so only download not installed, storage location/var/cache/yum/base/packages
#yum Install package name-y--downloadonly--downloaddir=/usr/date Specify a download directory, if it is already installed RPM package so unsuccessful, you need to use the Yum Reinstall package name-y-- Downloadonly--downloaddir=/usr/date
3. Source Package Installation
Source package is open source can change the package, mostly in C language development, not directly use, need to compile into binary executable file, compile the source package must have GCC support, if there is no need to install Yum install-y gcc
Usually compiles three steps:./config configure various compilation parameters; make compiles according to the specified compilation parameters; Install to the specified directory
This article is from the "Rhythm" blog, make sure to keep this source http://rhythm.blog.51cto.com/2800158/1629864
2015.3.30 Linux system software package management