How To Install oss-preserve on Ubuntu 18.04
Introduction
In this tutorial we learn how to install oss-preserve on Ubuntu 18.04.
What is oss-preserve
oss-preserve is:
This package saves the Open Sound System (OSS) mixer settings into a file when the machine is shut down, and restores them from the file when it is restarted. It can optionally restore from a file of fixed settings.
There are three methods to install oss-preserve 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 oss-preserve Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install oss-preserve using apt-get by running the following command:
sudo apt-get -y install oss-preserve
Install oss-preserve Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install oss-preserve using apt by running the following command:
sudo apt -y install oss-preserve
Install oss-preserve 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 oss-preserve using aptitude by running the following command:
sudo aptitude -y install oss-preserve
How To Uninstall oss-preserve on Ubuntu 18.04
To uninstall only the oss-preserve package we can use the following command:
sudo apt-get remove oss-preserve
Uninstall oss-preserve And Its Dependencies
To uninstall oss-preserve and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove oss-preserve
Remove oss-preserve Configurations and Data
To remove oss-preserve configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge oss-preserve
Remove oss-preserve configuration, data, and all of its dependencies
We can use the following command to remove oss-preserve configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge oss-preserve
References
Summary
In this tutorial we learn how to install oss-preserve package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.