Solved snmpget does not exist?

I am baffled. snmpget(1) indicates that snmpget is part of the base system in 12.1-RELEASE. My 12.1-RELEASE-p7 does not have snmpget. It has bsnmpget. Is the manual page wrong or have I again misunderstood something?
 
Thank you. I failed to see the net- part when I was looking for the port. Was driving me crazy, and your answer is perfect.
 
If you have trouble finding a application and don't know if it's on the base system whereis(1) or apropos(1) can help to determine if it is or not. When the mentioned utilities don't return a positive answer, it's likely what you search is from a port, assuming there is a port for it.

To find a application (or other files, e.g. shared libraries) provided by a port or package, my primary source is https://freshports.org . Freshports.org lists all the port details, inclusive a packing list (the content of a package: binaries, shared libs, rc scripts, headers, man pages, etc.).

If you have a ports tree installed you can query the pkg-plist of every port having one too, but it takes to long, unless you know in which category the port might be in. E.g.: grep -rwo "snmpget" /usr/ports/net* (or "bin/snmpget").

Freshports.org has the packaging list (pkg-plist) of every port displayed. Performing a web search with keyword and a site: modifier helps to find a specific file fast. E.g.: https://html.duckduckgo.com/html?q="snmpget" site:freshports.org (quotations marks around the keyword for exact match).
 
T-Daemon Thank you for the extra help. Honestly, I would love to know how to do the dnf provides equivalent on FreeBSD but so far no luck with this. dnf provides takes as an argument a command or a file name and tells me which package needs to be installed in order to get that command or file name (e.g., dnf provides smartctl would tell me I need to install smartmontools).

Well, I think you answered even this question. For example, grep -rwo lspci /usr/ports will tell me that I can install sysutils/pciutils to get it. THANK you x2.
 
ports-mgmt/psearch is a nice utility, but contrary to the man pages claim it doesn't search the pkg-plist files. Searching for snmpget doesn't return any useful result.

Here another option: Web search freshports.org from command line with www/googler:
googler snmpget -w freshports.org . To fine grain output see options.
 
Back
Top