How To Install libsafec-3.5-3 on Kali Linux

In this tutorial we learn how to install libsafec-3.5-3 on Kali Linux. libsafec-3.5-3 is safe C libc extensions (Annex K)

Introduction

In this tutorial we learn how to install libsafec-3.5-3 on Kali Linux.

What is libsafec-3.5-3

libsafec-3.5-3 is:

This library implements controversial C11 Annex K (TR24731) extensions. They are most commonly known as _s variants implemented by MSVC, dubbed as “secure” to the point of MSVC-related linters claiming standard functions to be deprecated. However, they’ve been nearly-universally panned by other libc implementors, the most recent discussion about Annex K removal and/or deprecation being N1967. It is recommended to avoid using these functions – they’re either prone to misuse or merely inefficient (measuring a string’s length twice being the most frequent case).

Yet despite these downsides, it is nice to have these functions available when porting some software that originated on Windows.

This package includes runtime binaries for the library.

There are three methods to install libsafec-3.5-3 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 libsafec-3.5-3 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libsafec-3.5-3 using apt-get by running the following command:

sudo apt-get -y install libsafec-3.5-3

Install libsafec-3.5-3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsafec-3.5-3 using apt by running the following command:

sudo apt -y install libsafec-3.5-3

Install libsafec-3.5-3 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 libsafec-3.5-3 using aptitude by running the following command:

sudo aptitude -y install libsafec-3.5-3

How To Uninstall libsafec-3.5-3 on Kali Linux

To uninstall only the libsafec-3.5-3 package we can use the following command:

sudo apt-get remove libsafec-3.5-3

Uninstall libsafec-3.5-3 And Its Dependencies

To uninstall libsafec-3.5-3 and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libsafec-3.5-3

Remove libsafec-3.5-3 Configurations and Data

To remove libsafec-3.5-3 configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libsafec-3.5-3

Remove libsafec-3.5-3 configuration, data, and all of its dependencies

We can use the following command to remove libsafec-3.5-3 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsafec-3.5-3

Dependencies

libsafec-3.5-3 have the following dependencies:

References

Summary

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