rdmsr command not found

In this troubleshooting guide we learn how to fix rdmsr command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rdmsr: command not found

or when using sudo you get the following error message

sudo: rdmsr: command not found

Solutions to rdmsr: command not found

How To Fix rdmsr: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rdmsr is provided by msr-tools package.

msr-tools is:

MSRs are Machine Specific Registers that are used to set values for hardware to use, or to pass values between the BIOS and kernel. This package provides utilities to both read and write MSRs. Reading and writing MSRs might be useful when debugging kernel drivers, for example.

To fix this problem, we can install more using the command below.

sudo apt-get -y install msr-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install msr-tools.

sudo apt -y install msr-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install msr-tools

Summary

In this tutorial we learn how to fix rdmsr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.