How To Install pcp-manager on Debian 10
Introduction
In this tutorial we learn how to install pcp-manager
on Debian 10.
What is pcp-manager
pcp-manager is:
An optional daemon (pmmgr) that manages a collection of pmlogger and pmie daemons, for a set of discovered local and remote hosts running the performance metrics collection daemon (pmcd). It ensures these daemons are running when appropriate, and manages their log rotation needs (which are particularly complex in the case of pmlogger).
The base PCP package provides comparable functionality through cron scripts which predate this daemon but do still provide effective and efficient log management services.
The pcp-manager package aims to aggressively enable new PCP features and as a result may not be suited to all production environments.
There are three methods to install pcp-manager
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pcp-manager Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pcp-manager
using apt-get
by running the following command:
sudo apt-get -y install pcp-manager
Install pcp-manager Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pcp-manager
using apt
by running the following command:
sudo apt -y install pcp-manager
Install pcp-manager 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 pcp-manager
using aptitude
by running the following command:
sudo aptitude -y install pcp-manager
How To Uninstall pcp-manager on Debian 10
To uninstall only the pcp-manager
package we can use the following command:
sudo apt-get remove pcp-manager
Uninstall pcp-manager And Its Dependencies
To uninstall pcp-manager
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove pcp-manager
Remove pcp-manager Configurations and Data
To remove pcp-manager
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge pcp-manager
Remove pcp-manager configuration, data, and all of its dependencies
We can use the following command to remove pcp-manager
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pcp-manager
Dependencies
pcp-manager have the following dependencies:
References
Summary
In this tutorial we learn how to install pcp-manager
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.