Preface
In the case of networking, to install the tcpdump command, you only need to execute yum install tcpdump. Intranet installation needs to copy the rpm package and related dependent packages. The safest way is to directly mount the mirrored CD as a repository source, avoiding the problem of dependent installation
Scenes
Copy tcpdump-4.9.2-4.el7_7.1.aarch64.rpm to the on-site server and execute the installation
rpm -ivh tcpdump-4.9.2-4.el7_7.1.aarch64.rpm
prompt:
libpcap >= 14:1.5.3-10 is required by tcpdump-4.9.2-4.el7_7.1.aarch64
On-site installation of libcap-2.22-11.el7.aarch64.rpm prompts an error
file /usr/lib64/libcap.so.2.22 from install of libcap-2.22.e17.aarch64 confilects with file from package libcap-2.2.aarch64
The above is all the data provided on site
Problem discovery
libpcap-1.5.3-12.el7.aarch64.rpm This is what needs to be installed. I don’t know where to find libcap-2.22-11.el7.aarch64.rpm on site, which is not only a difference between p, but also There is a problem with the version number. On-site personnel are not familiar with Linux systems
Solve the problem
Install libpcap-1.5.3-12.el7.aarch64.rpm to solve the problem
note
It’s safest to mount a CD image
Auxiliary instruction
Query rpm dependent package instructions rpm -qpR tcpdump-4.9.2-4.el7_7.1.aarch64.rpm