Netstat utility not available?

Hello,
i was using “netstat” to see network connections on different Linux distribution.
I see Manjaro does not feature it.

$ sudo pacman -Ss netstat

community/netstat-nat 1.4.10-5
Small program written in C displaying NAT connections, managed by netfilter.

after install “sudo pacman -S netstat-nat”, netstat command is not found and netstat-nat shows:

Could not read info about connections from the kernel, make sure netfilter is enabled in kernel or by modules.

What i am doing wrong, or is there any alternative to that program?

I think you are looking for the legacy net-tools package.

PS - the modern replacement is ss
See more here:
https://wiki.archlinux.org/index.php/Network_configuration#net-tools

4 Likes

Hello,

pacman -F netstat
core/net-tools 1.60.20181103git-2
    usr/bin/netstat
extra/munin-node 2.0.64-1
    usr/lib/munin/plugins/netstat

So, you either install net-tools or munin-node package and then netstat command will be available.

2 Likes

Nope, that’s just a plugin. It does not provide a netstat binary. :wink:

I use this graphical alternative from AUR:

netactview

Give it a try, it’s quite nice.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.