This question already has an answer here:
I just installed Archlinux and want to install
netstat. However using the command
pacman -Ss netstat outputs irrelevant package names. A search on internet revealed that netstat is owned by
net-tools. Installing net-tools gave me access to netstat.
How should one proceed to find the package name to install with pacman when only the final bash command is known ?