How To Install librust-libgit2-sys+libssh2-sys-dev on Kali Linux

In this tutorial we learn how to install librust-libgit2-sys+libssh2-sys-dev on Kali Linux. librust-libgit2-sys+libssh2-sys-dev is Native bindings to the libgit2 library - feature libssh2-sys and 1 more

Introduction

In this tutorial we learn how to install librust-libgit2-sys+libssh2-sys-dev on Kali Linux.

What is librust-libgit2-sys+libssh2-sys-dev

librust-libgit2-sys+libssh2-sys-dev is:

This metapackage enables feature “libssh2-sys” for the Rust libgit2-sys crate, by pulling in any additional dependencies needed by that feature.

Additionally, this package also provides the “ssh” feature.

There are three methods to install librust-libgit2-sys+libssh2-sys-dev 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 librust-libgit2-sys+libssh2-sys-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 librust-libgit2-sys+libssh2-sys-dev using apt-get by running the following command:

sudo apt-get -y install librust-libgit2-sys+libssh2-sys-dev

Install librust-libgit2-sys+libssh2-sys-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librust-libgit2-sys+libssh2-sys-dev using apt by running the following command:

sudo apt -y install librust-libgit2-sys+libssh2-sys-dev

Install librust-libgit2-sys+libssh2-sys-dev 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 librust-libgit2-sys+libssh2-sys-dev using aptitude by running the following command:

sudo aptitude -y install librust-libgit2-sys+libssh2-sys-dev

How To Uninstall librust-libgit2-sys+libssh2-sys-dev on Kali Linux

To uninstall only the librust-libgit2-sys+libssh2-sys-dev package we can use the following command:

sudo apt-get remove librust-libgit2-sys+libssh2-sys-dev

Uninstall librust-libgit2-sys+libssh2-sys-dev And Its Dependencies

To uninstall librust-libgit2-sys+libssh2-sys-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove librust-libgit2-sys+libssh2-sys-dev

Remove librust-libgit2-sys+libssh2-sys-dev Configurations and Data

To remove librust-libgit2-sys+libssh2-sys-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge librust-libgit2-sys+libssh2-sys-dev

Remove librust-libgit2-sys+libssh2-sys-dev configuration, data, and all of its dependencies

We can use the following command to remove librust-libgit2-sys+libssh2-sys-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librust-libgit2-sys+libssh2-sys-dev

Dependencies

librust-libgit2-sys+libssh2-sys-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install librust-libgit2-sys+libssh2-sys-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.