backgroundYou cannot use yum to install on the intranet server. If you need to install it yourself, related dependency errors may occur (dependency package versions are incompatible). The solution is to find a machine with the same operating system version that supports yum, and copy the installed package to another machine for installation. 1) Enable the keepchche function of yum: Method 1vi /etc/yum.conf keepcache =1 # Change to 1 Example: Install iptables yum -y install iptables iptables-services cd /var/cache/yum/x86_64/7 ls As shown in the picture: the source of iptables is in the base directory cd packages/ ls According to the path of cachedir setting in the /etc/yum.conf configuration file, the iptables software just installed by yum is saved in packages/ 2) yum-utils software: Method 2# Install the yum-utils software, --destdir specifies the directory, and finally specifies the package name to be installed yumdownloader --destdir=/root iptables iptables-services cd /root ls 3) lrzsz download and uploadyum -y install lrzsz # rz save to local/sz upload to server This concludes this article on solutions to problems such as dependency reporting when installing software packages in Linux. For more information on Linux dependency reporting issues, please search previous articles on 123WORDPRESS.COM or continue browsing the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: JavaScript destructuring assignment detailed explanation
>>: MySQL stored functions detailed introduction
Table of contents js calling method Android 1.js ...
This article shares the specific code of JavaScri...
Table of contents Early creation method Factory P...
This article example shares the specific code of ...
Use of stored procedure in parameters IN paramete...
How to use if in Linux to determine whether a dir...
Many websites have a navigation bar fixed at the ...
Preface This article mainly introduces the releva...
Table of contents 1. Example scenario 1.1. Set th...
Log in docker login Complete the registration and...
=================================================...
Preface Dockerfile is a script interpreted by the...
Development Pain Points During the development pr...
This article uses the gearman+mysql method to imp...
1. Background A sql-killer process is set up on e...