Linux - 查看命令所属的软件包

这里以查看netstat命令所属的软件包为例。

CentOS:利用yum provides命令

netstat命令所属的软件包为net-tools

[root@CentOS7 ~]# yum provides netstat
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * extras: mirrors.sohu.com
 * updates: mirrors.163.com
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
源    :@anaconda
匹配来源:
文件名    :/usr/bin/netstat

Ubuntu:利用apt-cache search命令

netstat命令所属的软件包为net-tools

root@Ubuntu1604:~# apt-cache search netstat
net-tools - NET-3 networking toolkit
gnome-nettool - GNOME 的网络信息工具
bwm-ng - small and simple console-based bandwidth monitor
libparse-netstat-perl - module to parse the output of the "netstat" command
netstat-nat - tool that display NAT connections
nicstat - print network traffic statistics
unhide - Forensic tool to find hidden processes and ports
whichman - Fault tolerant search utilities: whichman, ftff, ftwhich
root@Ubuntu1604:~# 

查看net-tools包的信息

  • CentOS:yum info net-tools
  • Ubuntu:apt-cache show net-tools

转载于:https://www.cnblogs.com/anliven/p/7944717.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值