Welcome: Hunan Intelligent Applications Tecgnology CO.,ltd.-HNIAT.com
Language: Chinese ∷  English

Basic knowledge

Linux configuration yum repository

First, let's introduce yum.
Yum (also known as Yellow dog Updater, Modified) is a shell front-end package manager in Fedora, RedHat, and CentOS. Based on RPM package management, RPM packages can be automatically downloaded and installed from designated servers, dependency relationships can be automatically processed, and all dependent software packages can be installed at once without the need for cumbersome downloading and installation.
Below is an introduction to the configuration process of yum.
First, mount the system CD
mkdir /media/cdrom mount /dev/cdrom /media/cdrom
Create yum warehouse file
Enter the directory where the yum repository is stored and search for the configuration file "/etc/yum. repos. d/"
Create a file with repo as the suffix format, or directly use the system's built-in source.
cd /etc/yum.repos.d/ vim centos.repo
Next, we use the vi editor to open the repo file we have created
Write the following content in it
[yum] # # yum Warehouse unique identifier to avoid conflicts with other warehouses name=redhat # # Warehouse name baseURL= file:///media/cdrom ##File path enabled=1 # # Set whether this source is available, 1 is available, 0 is disabled for gpgcheck=0 # # Set whether this source verifies files, 1 is verified, and 0 is not verified
Then: wq save to exit.
Next, use the command yum y install httpd to test if the configuration of yum was successful.
Finally, add the commonly used yum command.
Install software (using foo x.x.x.rpm as an example): yum install foo x.x.x.rpm
Remove software: yum remove foo x.x.x.rpm or yum erase foo x.x.x.rpm
Upgrade software: yum upgrade foo or yum update foo
Query information: yum info foo
Search software (using the foo field as an example): yum search foo
Display package dependencies: yum deploy foo
-Q Silent execution
-TIgnore errors
-R [minutes] Set waiting time
-Y automatic response yes
--Skip broker ignoring dependency issues
--Neglecting GPG validation for nogpgcheck
Check update checks for updatable packages
Clean all
Clean packages Clear temporary package files (files under/var/cache/yum)
Clean headers Clear rpm header files
Clean oldheaders Clear old rpm header files
List the dependencies of the package
List installable and updatable RPM packages
List installed packages
List extras installed and not in the resource library package
Information on installable and updatable RPM packages
Information about installed packages (similar to the - qa parameter)
Install [RPM package] installation package
Localinstall Install the local RPM package
Update [RPM package] Update package
Upgrade System
Search [keyword] search package
Provide [keywords] Search for specific package file names
Reinstall [RPM package] Reinstall the package
Repolist displays the configuration of the resource library
Resolvedep specifies dependencies
Remove [RPM package] Uninstall the package

CONTACT US

Contact: Manager Xu

Phone: 13907330718

Tel: 0731-22222718

Email: hniatcom@163.com

Add: Room 603, 6th Floor, Shifting Room, No. 2, Orbit Zhigu, No. 79 Liancheng Road, Shifeng District, Zhuzhou City, Hunan Province

Scan the qr codeClose
the qr code