I'm new to linux but can't find any answers elsewhere.
I have a vanilla RHEL 7.1 installation and I want to run dmidecode and lshal, but when I attempt to run it it says "bash: command not found" for both these commands
I have tried /usr/bin and /usr/sbin
Would these commands be in another folder or do they have to be installed ? If the latter, how do I install them ? or are there alternatives..etc !
thanks
Best Answer
dmidecode
should come with your RHEL 7 install but for good measure run this command to check if it's installed:You should get a bunch of information regarding the package. Look for the "Installed Date" line for confirmation. If it's not installed, try a quick:
dmidecode
may intentionally be omitted from the install if your system architecture is IBM System Z, PowerPC, or Itanium. From the RHEL customer portal(requires login to view fully):Also, from this RHEL bugzilla page:
If your system architecture is one of the above, you may consider an alternative such as
lshw
orhwinfo
. You can make use of thearch
oruname -m
commands to show your system architecture.If you're running a supported platform for dmidecode, consider filing a bug at the location of that second link above^