Classification of packages:
Source package: code, because there is no compilation, parameter configuration, tailoring, etc. can be modified during the compilation process.
Disadvantages: Too many steps, and the compilation process takes a long time. Once an error is reported during the installation process, it is difficult for a novice to solve it.
Binary package: compiled, the parameter configuration inside cannot be modified. (RPM package, system default package)
RPM package dependencies:
Tree dependency: a—>b—>c
Ring dependency: a—>b—>c—>a (installed together)
RPM package management
rpm -ivh package full name install
rpm -Uvh package full name upgrade
rpm -e package name uninstall
rpm -q package name Query whether to install
rpm -qi package name Query package details
rpm -ql package name Query the installation location of files in the package
rpm -qf system file name Query which RPM package the system file belongs to
rpm -qR package name Query package dependencies
rpm -qRp full package name Query package dependencies
yum configuration
yum uses the central repository to automatically install various installation packages, and can automatically query and install other software packages that the software package requested by the user depends on.
yum configuration document /etc/yum.repos.d
CentOS-Base.repo network source configuration file
CentOS-Media.repo (local source configuration file)
Media: enabled =1;
baseurl = file:///_____ mount image ___________
yum related command options
yum search keyword search command
yum install packages installation command
yum update packages upgrade command
yum info / list packages query command
yum remove/erase packages uninstall command
yum clean packages clean cache command
-y: This option can automatically provide yes when the user is waiting for input
Source installation
Download the source package, unzip the downloaded source package, and enter the unzip directory
./configure software configuration and checking
Define the required functional options, and the installation location.
Check whether the system environment meets the installation requirements.
Write the defined function options and information about the detection system environment into the Makefile file for subsequent compilation
--prefix=/installation directory
--sysconfdir=/config file
--help: show default parameters
make compile
make clean
make install compile and install