(1) Package Introduction
1. Source Code Package
Script installation Package
2. Binary package (RPM, system default package)
(2) RPM package management
Installation
-I Installation
-V Show More information
-H Show Progress
--nodeps does not detect dependencies
-U Upgrade
Example: Installation: RMP-IVH package name
Upgrade: RMP-UVH Package Name
-e Uninstall
Example: RMP-E package Name
-Q Query
-A All
-I. Software information
-P does not install package information
-L Mounting position
-F System file belongs to which package
-R Dependency
Example: Query all installed: RPM-QA | grep Package Name
Query software details: RPM-QI package Name
File installation location in Query package: RPM-QL Package Name
Query which package the system file belongs to: RPM-QF file name
Query Package dependencies: RPM-QR Package Name
-V Checksum
Example: Verifying files in a specified package: Rpm-v installed package name
Example: Extracting a file from a package: Rpm2cpio Package Full Name | Cpio-idv. File absolute Path
Extracting data from a file
Cpio Options <[File | device]>
-I Restore
-D new Catalog when restoring
-V shows the restore process
(3) Yum Online management
Query all available installation packages: Yum List
Search the server for the key-related packages: Yum search
Installation: Yum-y Install package name (-y auto Answer Yes)
Upgrade: Yum-y Update package name
Uninstall: Yum-y Remove package Name
(4) Source package installation
1. Preparation: Installing the C language compiler (GCC)
2. Note:
SOURCE Package Save Location:/usr/local/src/
Software Installation Location:/usr/local/
3. Installation Steps
Download
Extract
Go to Catalog
./config--prefix=/usr/local/xxx
Make
Make install
4. Annotations
./config (software configuration and inspection, preparation before compiling)
Define the required feature options
Detects if the system environment meets the installation requirements
Writes the defined function options and the information of the inspection system environment to the makefile file for subsequent edits
--prefix=/usr/local/xxx Defining the installation location
Make compilation
Make clean empty the compiled file
Make Install build Installation
4. Remove/usr/local/xxx or Uninstall
Linux notes (ix)-Package management