How To Install initramfs-tools-ubuntu-core on Ubuntu 18.04
Introduction
In this tutorial we learn how to install initramfs-tools-ubuntu-core on Ubuntu 18.04.
What is initramfs-tools-ubuntu-core
initramfs-tools-ubuntu-core is:
This package contains the scripts to make a read-only Ubuntu Core image selectively writeable. These scripts are run within the initramfs. This package should be installed on Ubuntu Core systems.
There are three methods to install initramfs-tools-ubuntu-core on Ubuntu 18.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 initramfs-tools-ubuntu-core Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install initramfs-tools-ubuntu-core using apt-get by running the following command:
sudo apt-get -y install initramfs-tools-ubuntu-core
Install initramfs-tools-ubuntu-core Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install initramfs-tools-ubuntu-core using apt by running the following command:
sudo apt -y install initramfs-tools-ubuntu-core
Install initramfs-tools-ubuntu-core 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 initramfs-tools-ubuntu-core using aptitude by running the following command:
sudo aptitude -y install initramfs-tools-ubuntu-core
How To Uninstall initramfs-tools-ubuntu-core on Ubuntu 18.04
To uninstall only the initramfs-tools-ubuntu-core package we can use the following command:
sudo apt-get remove initramfs-tools-ubuntu-core
Uninstall initramfs-tools-ubuntu-core And Its Dependencies
To uninstall initramfs-tools-ubuntu-core and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove initramfs-tools-ubuntu-core
Remove initramfs-tools-ubuntu-core Configurations and Data
To remove initramfs-tools-ubuntu-core configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge initramfs-tools-ubuntu-core
Remove initramfs-tools-ubuntu-core configuration, data, and all of its dependencies
We can use the following command to remove initramfs-tools-ubuntu-core configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge initramfs-tools-ubuntu-core
References
Summary
In this tutorial we learn how to install initramfs-tools-ubuntu-core package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.