CentOS 7 - -bash: netstat: command not found

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Доступная цена


CentOS 7 - -bash: netstat: command not found

Если при попытке выполнить команду netstat в CentOS7 Вы получаете ошибку:

 # netstat -nlp
-bash: netstat: command not found


то это решается доустановкой пакета:

# yum install net-tools



Также можно найти пакет через команду:

# yum search 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


или вот так вот через repoquery из пакета :

# yum install yum-utils.noarch
# repoquery -ql net-tools  | grep netstat
/bin/netstat
/usr/share/man/de/man8/netstat.8.gz
/usr/share/man/fr/man8/netstat.8.gz
/usr/share/man/man8/netstat.8.gz
/usr/share/man/pt/man8/netstat.8.gz