How To Install ureadahead on Ubuntu 18.04
Introduction
In this tutorial we learn how to install ureadahead
on Ubuntu 18.04.
What is ureadahead
ureadahead is:
über-readahead is used during boot to read files in advance of when they are needed such that they are already in the page cache, improving boot performance.
Its data files are regenerated on the first boot after install, and either monthly thereafter or when packages with init scripts or configs are installed or updated.
ureadahead requires a kernel patch included in the Ubuntu kernel.
There are three methods to install ureadahead
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 ureadahead Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ureadahead
using apt-get
by running the following command:
sudo apt-get -y install ureadahead
Install ureadahead Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ureadahead
using apt
by running the following command:
sudo apt -y install ureadahead
Install ureadahead 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 ureadahead
using aptitude
by running the following command:
sudo aptitude -y install ureadahead
How To Uninstall ureadahead on Ubuntu 18.04
To uninstall only the ureadahead
package we can use the following command:
sudo apt-get remove ureadahead
Uninstall ureadahead And Its Dependencies
To uninstall ureadahead
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove ureadahead
Remove ureadahead Configurations and Data
To remove ureadahead
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge ureadahead
Remove ureadahead configuration, data, and all of its dependencies
We can use the following command to remove ureadahead
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ureadahead
References
Summary
In this tutorial we learn how to install ureadahead
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.