Problem scenario
You are trying to install Snort or some other program that requires hwloc. You want to see if hwloc is installed. If it is installed, you would like to know which version it is. How do you find out if it is installed and the version (if it is installed)?
Solution
You could type "hwloc-" and then press the Tab key two times. If there are hwloc options printed below, then you have it installed. Try this command to ascertain the version:
hwloc-info --version