How To Install libsafec-dev on Debian 11
Introduction
In this tutorial we learn how to install libsafec-dev
on Debian 11.
What is libsafec-dev
libsafec-dev 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 development headers.
There are three methods to install libsafec-dev
on Debian 11. 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-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 libsafec-dev
using apt-get
by running the following command:
sudo apt-get -y install libsafec-dev
Install libsafec-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsafec-dev
using apt
by running the following command:
sudo apt -y install libsafec-dev
Install libsafec-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libsafec-dev
using aptitude
by running the following command:
sudo aptitude -y install libsafec-dev
How To Uninstall libsafec-dev on Debian 11
To uninstall only the libsafec-dev
package we can use the following command:
sudo apt-get remove libsafec-dev
Uninstall libsafec-dev And Its Dependencies
To uninstall libsafec-dev
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libsafec-dev
Remove libsafec-dev Configurations and Data
To remove libsafec-dev
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libsafec-dev
Remove libsafec-dev configuration, data, and all of its dependencies
We can use the following command to remove libsafec-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsafec-dev
Dependencies
libsafec-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libsafec-dev
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.