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 Preface 1. Nginx installation 1...
1. Preparation 1.1 Download the tomcat compressed...
During the installation of Ubuntu 18, the mmx64.e...
Table of contents 1. Vue installation Method 1: C...
When associating two tables, a foreign key could ...
Table of contents What is a slot Understanding of...
This article uses examples to illustrate the usag...
Table of contents Preface Function Overloading Ma...
In the Linux system, environment variables can be...
In Docker's design, a container runs only one...
Preface In order to ensure the consistency and in...
Table of contents The pitfalls Filling method Wha...
The method of using CSS style to vertically cente...
Apache Tika is a library for file type detection ...
sort Sort the contents of a text file Usage: sort...