How To Install pkg-kde-tools on Kali Linux

In this tutorial we learn how to install pkg-kde-tools on Kali Linux. pkg-kde-tools is various packaging tools and scripts for KDE Applications

Introduction

In this tutorial we learn how to install pkg-kde-tools on Kali Linux.

What is pkg-kde-tools

pkg-kde-tools is:

This package contains a variety of packaging tools and build scripts that may be very useful when packaging KDE applications. Even if you are a maintainer of a very small KDE application, this package should be worthwhile checking out.

Main highlights:

  • recommended build flags for building packages based on the KDE Platform;
  • cdbs class for building packages based on the KDE Platform (kde.mk);
  • debhelper build system (–buildsystem=kde) and dh addon (–with kde) for building packages based on the KDE Platform;
  • dh_sameversiondep for generating a dependency that is versioned the same way as a dependency (coming from the same source) of another reference package.
  • dh_movelibkdeinit for moving libkdeinit4_*.so libraries to private location;
  • dh_sodeps (and sodeps dh addon) for generating so:Depends substvar for -dev packages based to which local packages lib*.so symlinks point to;
  • dh_qmlcdeps (and qmlcdeps dh addon) for generating qmlc:Depends substvar for packages shipping QML cache files.
  • pkgkde-symbolshelper tool for efficient management of C and C++ symbol files;
  • pkgkde-debs2symbols tool for generating symbol files and symbol file patches from pre-built binaries in the deb packages;
  • pkgkde-getbuildlogs tool for downloading build logs for the specified package (from buildd.debian.org);
  • pkgkde-override-sc-dev-latest tool for overriding Breaks of the kde-sc-dev-latest package;
  • pkgkde-vcs tool for performing common tasks when packaging under VCS.

NOTE: since this package is cumulative, it does not depend on the packages it provides helpers for. I.e. you still need to explicitly build depend on debhelper or cdbs in your packages.

There are three methods to install pkg-kde-tools on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install pkg-kde-tools Using apt-get

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

sudo apt-get update

After updating apt database, We can install pkg-kde-tools using apt-get by running the following command:

sudo apt-get -y install pkg-kde-tools

Install pkg-kde-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install pkg-kde-tools using apt by running the following command:

sudo apt -y install pkg-kde-tools

Install pkg-kde-tools Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install pkg-kde-tools using aptitude by running the following command:

sudo aptitude -y install pkg-kde-tools

How To Uninstall pkg-kde-tools on Kali Linux

To uninstall only the pkg-kde-tools package we can use the following command:

sudo apt-get remove pkg-kde-tools

Uninstall pkg-kde-tools And Its Dependencies

To uninstall pkg-kde-tools and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove pkg-kde-tools

Remove pkg-kde-tools Configurations and Data

To remove pkg-kde-tools configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge pkg-kde-tools

Remove pkg-kde-tools configuration, data, and all of its dependencies

We can use the following command to remove pkg-kde-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge pkg-kde-tools

Dependencies

pkg-kde-tools have the following dependencies:

References

Summary

In this tutorial we learn how to install pkg-kde-tools package on Kali Linux using different package management tools: apt, apt-get and aptitude.