1, RPM installation Package command (in the case of a DHCP package)----RPM installation package needs to resolve dependencies, so it is particularly troublesome (2 is required). Both RPM and Yum are binary packages. Similar to the Windows download package, you can install it directly.
Rpm-qa | grep DHCP to see if the system installs the dhcp* package
RPM-IVH DHCP installation package (I--install v)
RPM-E DHCP Offload Package
RPM-QL DHCP Package installation path
Rpm-qi more information about DHCP packages
RPM-QF DHCP to view the files that the DHCP package belongs to
Force override installed at the back plus--force
2.Yum command (take httpd as an example) Yum software source is automatically updated (off)
Yum-y Install HTTPD installation package
Yum-y Erase httpd Uninstall Package
/ETC/YUM.REPOS.D Yum Source Path <yum installation package Origin >
You can customize the. repo file under/etc/yum.repd.d, Vim Xxx.repo can be written
Yum–y Remove software name uninstall software name
Yum–y Groupinstall Component Name Install component name
Yum–y Groupremove Component Name unload component name
Yum clean all clears the Yum cache
Yum Search package name uses Yum to find packages
Yum makecache-y do (yum package) cache
Turn off Yum auto Update software:
How to download a package from the Web for installation: (Take Python3.6 as an example)
1. Download the package from the Python Web www.Python.org---->source Code
2. Install the LRZSZ package before you can drag files onto Linux.
3. Unpack the package with the TAR command: TAR-XVF package
4. After the decompression to initialize the configuration, the package installed in that location, the package started what features and so on.
./configure---prefix=/usr/local/python3.6 The specified installation package is installed in that location (./configure Perform initialization configuration)
5. Yum Grouplist
Yum Groupinstall "development tool"-y//Install development tool (source code into binary code) will automatically GCC glibc related development software tools
6.make Install compilation <> installation
7. If the installation fails due to the absence of the appropriate package, you can continue to install the appropriate package and make Intall
For example:
Linux installation Package Command/yum and RPM