How To Install nvramtool on Ubuntu 20.04
Introduction
In this tutorial we learn how to install nvramtool
on Ubuntu 20.04.
What is nvramtool
nvramtool is:
nvramtool is a utility for reading/writing coreboot parameters in NVRAM/CMOS and displaying information from the so-called ‘coreboot table’.
The coreboot table resides in low physical memory. It is created at boot time by coreboot, and contains various system information such as the type of mainboard in use. It specifies locations in the NVRAM/CMOS (nonvolatile RAM) where the coreboot parameters are stored.
This program is mostly intended for (x86-based) systems that use coreboot, but can also be used for non-coreboot system (e.g. for dumping all NVRAM bytes).
For information about coreboot, see http://www.coreboot.org/.
There are three methods to install nvramtool
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install nvramtool Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install nvramtool
using apt-get
by running the following command:
sudo apt-get -y install nvramtool
Install nvramtool Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install nvramtool
using apt
by running the following command:
sudo apt -y install nvramtool
Install nvramtool Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install nvramtool
using aptitude
by running the following command:
sudo aptitude -y install nvramtool
How To Uninstall nvramtool on Ubuntu 20.04
To uninstall only the nvramtool
package we can use the following command:
sudo apt-get remove nvramtool
Uninstall nvramtool And Its Dependencies
To uninstall nvramtool
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove nvramtool
Remove nvramtool Configurations and Data
To remove nvramtool
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge nvramtool
Remove nvramtool configuration, data, and all of its dependencies
We can use the following command to remove nvramtool
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge nvramtool
References
Summary
In this tutorial we learn how to install nvramtool
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.