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