How To Install file-rc on Debian 9
Introduction
In this tutorial we learn how to install file-rc
on Debian 9.
What is file-rc
file-rc is:
This package provides an alternative mechanism to boot the system, to shut it down and to change runlevels. The /etc/rc?.d/* links will be converted into one single configuration file /etc/runlevel.conf instead, which is easier to administrate than symlinks, and is also more flexible.
The package will automatically convert your existing symlinks into the file method on installation, and convert the file back into symlinks on removal. Both mechanisms are compatible through /etc/init.d/rc, /etc/init.d/rcS, /usr/sbin/update-rc.d, and /usr/sbin/invoke-rc.d scripts.
There are three methods to install file-rc
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install file-rc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install file-rc
using apt-get
by running the following command:
sudo apt-get -y install file-rc
Install file-rc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install file-rc
using apt
by running the following command:
sudo apt -y install file-rc
Install file-rc 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install file-rc
using aptitude
by running the following command:
sudo aptitude -y install file-rc
How To Uninstall file-rc on Debian 9
To uninstall only the file-rc
package we can use the following command:
sudo apt-get remove file-rc
Uninstall file-rc And Its Dependencies
To uninstall file-rc
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove file-rc
Remove file-rc Configurations and Data
To remove file-rc
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge file-rc
Remove file-rc configuration, data, and all of its dependencies
We can use the following command to remove file-rc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge file-rc
Dependencies
file-rc have the following dependencies:
References
Summary
In this tutorial we learn how to install file-rc
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.