How To Install config-package-dev on Ubuntu 22.04

In this tutorial we learn how to install config-package-dev on Ubuntu 22.04. config-package-dev is Debhelper (and CDBS) modules for building configuration packages

Introduction

In this tutorial we learn how to install config-package-dev on Ubuntu 22.04.

What is config-package-dev

config-package-dev is:

This package contains a system of modules for creating Debian configuration packages: packages that configure an existing Debian system by using dpkg-divert on configuration files. These modules attempt to make the process of creating configuration packages efficient by checking the md5sums of upstream configuration files that are to be modified and automatically generating the relevant postinst code to perform the diversions using the standard debhelper mechanism. In addition to a debhelper command and sequencer extension module, CDBS modules are also included, but future development will focus on the debhelper interface.

The config-package-dev modules are optimized for site defaults (i.e. configuration for a university or a company), though they are useful for other applications as well.

There are three methods to install config-package-dev on Ubuntu 22.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 config-package-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install config-package-dev using apt-get by running the following command:

sudo apt-get -y install config-package-dev

Install config-package-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install config-package-dev using apt by running the following command:

sudo apt -y install config-package-dev

Install config-package-dev 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 config-package-dev using aptitude by running the following command:

sudo aptitude -y install config-package-dev

How To Uninstall config-package-dev on Ubuntu 22.04

To uninstall only the config-package-dev package we can use the following command:

sudo apt-get remove config-package-dev

Uninstall config-package-dev And Its Dependencies

To uninstall config-package-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove config-package-dev

Remove config-package-dev Configurations and Data

To remove config-package-dev configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge config-package-dev

Remove config-package-dev configuration, data, and all of its dependencies

We can use the following command to remove config-package-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge config-package-dev

References

Summary

In this tutorial we learn how to install config-package-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.