在日常操作linxu系統的時候難免遇到沒有相關命令問題
-bash:unzip:command not found
使用yum search +軟體名或者關鍵字 //查找相關功能的包,然后下載
如:
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# yum search netstat
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.nju.edu.cn
* extras: mirrors.nju.edu.cn
* updates: centos.mirror.angkasa.id
=============================== Matched: netstat ===============================
dstat.noarch : Versatile resource statistics tool
net-snmp.x86_64 : A collection of SNMP protocol tools and libraries
net-tools.x86_64 : Basic networking tools
[root@localhost ~]#
如上發現netstat命令是在net-tools包中,那么我們可以直接使用yum install net-tools 命令直接安裝
注:如果是服務器沒有聯網的情況下,可以現在有網路環境機器下載rpm包,然后拷貝到離線服務器中
[root@localhost ~]# yum install net-tools --downloadonly --downloaddir /home
注:上面命令是將相關rpm包下載到指定目錄下,進入目錄使用rpm -ivh xxx.rpm --force --nodeps 強制安裝,忽略依賴
[root@localhost home]# ls
mysql-community-client-5.7.35-1.el7.x86_64.rpm
net-tools-2.0-0.25.20131004git.el7.x86_64.rpm
[root@localhost home]#
[root@localhost home]#
[root@localhost home]# rpm -ivh net-tools-2.0-0.25.20131004git.el7.x86_64.rpm --force --nodeps
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/339308.html
標籤:其他
