How To Install bareos-director on Debian 9
Introduction
In this tutorial we learn how to install bareos-director
on Debian 9.
What is bareos-director
bareos-director is:
Bareos is a set of programs to manage backup, recovery and verification of data across a network of computers of different kinds.
The Bareos Director service supervises all the backup, restore, verify and archive operations. It can run as a daemon or as a foreground service which administrators can use to schedule backups and recover files.
This package contains the Bareos Director daemon.
There are three methods to install bareos-director
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 bareos-director Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install bareos-director
using apt-get
by running the following command:
sudo apt-get -y install bareos-director
Install bareos-director Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install bareos-director
using apt
by running the following command:
sudo apt -y install bareos-director
Install bareos-director 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 bareos-director
using aptitude
by running the following command:
sudo aptitude -y install bareos-director
How To Uninstall bareos-director on Debian 9
To uninstall only the bareos-director
package we can use the following command:
sudo apt-get remove bareos-director
Uninstall bareos-director And Its Dependencies
To uninstall bareos-director
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove bareos-director
Remove bareos-director Configurations and Data
To remove bareos-director
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge bareos-director
Remove bareos-director configuration, data, and all of its dependencies
We can use the following command to remove bareos-director
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge bareos-director
Dependencies
bareos-director have the following dependencies:
- debconf
- adduser
- bareos-common
- bareos-database-common
- bareos-database-tools
- lsb-base
- lsof
- bsd-mailx
- libacl1
- libc6
- libcap2
References
Summary
In this tutorial we learn how to install bareos-director
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.