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

Learn the operating mechanism of jsBridge in one article

Table of contents js calling method Android 1.js ...

JavaScript to display hidden form text

This article shares the specific code of JavaScri...

js to realize web message board function

This article example shares the specific code of ...

Detailed explanation of the entry-level use of MySql stored procedure parameters

Use of stored procedure in parameters IN paramete...

Linux uses if to determine whether a directory exists.

How to use if in Linux to determine whether a dir...

Solution to CSS anchor positioning being blocked by the top fixed navigation bar

Many websites have a navigation bar fixed at the ...

Linux C log output code template sample code

Preface This article mainly introduces the releva...

JS calculates the probability of winning based on the prize weight

Table of contents 1. Example scenario 1.1. Set th...

Detailed explanation of common commands in Docker repository

Log in docker login Complete the registration and...

Common failures and reasons for mysql connection failure

=================================================...

Docker Basic Tutorial: Detailed Explanation of Dockerfile Syntax

Preface Dockerfile is a script interpreted by the...

MySql development of automatic synchronization table structure

Development Pain Points During the development pr...

Gearman + MySQL to achieve persistence operation example

This article uses the gearman+mysql method to imp...

A case study on MySQL optimization

1. Background A sql-killer process is set up on e...