Solutions to problems related to software package dependency reporting during installation in Linux

Solutions to problems related to software package dependency reporting during installation in Linux

background

You 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 1

vi /etc/yum.conf  
	keepcache =1 # Change to 1	

insert image description here

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

insert image description here

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/

insert image description here

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

insert image description here

3) lrzsz download and upload

yum -y install lrzsz
# rz save to local/sz upload to server 

insert image description here

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:
  • Solve the problem that pycharm cannot automatically save in remote linux
  • Solve the problem of no my.cnf file in /etc when installing mysql on Linux
  • Linux disk space release problem summary

<<:  JavaScript destructuring assignment detailed explanation

>>:  MySQL stored functions detailed introduction

Recommend

Where is mysql data stored?

MySQL database storage location: 1. If MySQL uses...

MySQL triggers: creating and using triggers

This article uses examples to describe the creati...

A brief discussion on the types of node.js middleware

Table of contents Overview 1. Application-level m...

MySQL statement arrangement and summary introduction

SQL (Structured Query Language) statement, that i...

Solution to define the minimum height of span has no effect

The span tag is often used when making HTML web pa...

How to simply configure multiple servers in nginx

1: I won’t go into the details of how to install ...

A simple method to merge and remove duplicate MySQL tables

Scenario: The crawled data generates a data table...

Vue3 gets the current routing address

Correct answer Using useRouter : // router path: ...

jQuery realizes the full function of shopping cart

This article shares the specific code of jQuery t...

JS interview question: Can forEach jump out of the loop?

When I was asked this question, I was ignorant an...

Do you know the meaning of special symbols in URL?

1.# # represents a location in a web page. The ch...

How to quickly modify the table structure of MySQL table

Quickly modify the table structure of a MySQL tab...

JavaScript implements fireworks effects with sound effects

It took me half an hour to write the code, and th...