How To Install freebsd-glue on Debian 9
Introduction
In this tutorial we learn how to install freebsd-glue
on Debian 9.
What is freebsd-glue
freebsd-glue is:
This package provides a set of glue headers and symbolic links to emulate a FreeBSD build environment.
Its goal is to make it as easy as possible to build source code written for FreeBSD on Debian, by adding the necessary glue so that equivalent interfaces in packages like freebsd-buildutils, libbsd-dev or libexpat-dev are directly available to pristine FreeBSD code.
freebsd-glue strives for bug-for-bug compatibility and will even attempt to accommodate for unspecified features (such as implicit header inclusion), as long as this doesn’t cause breakage in other areas.
There are three methods to install freebsd-glue
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install freebsd-glue Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install freebsd-glue
using apt-get
by running the following command:
sudo apt-get -y install freebsd-glue
Install freebsd-glue Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install freebsd-glue
using apt
by running the following command:
sudo apt -y install freebsd-glue
Install freebsd-glue 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 freebsd-glue
using aptitude
by running the following command:
sudo aptitude -y install freebsd-glue
How To Uninstall freebsd-glue on Debian 9
To uninstall only the freebsd-glue
package we can use the following command:
sudo apt-get remove freebsd-glue
Uninstall freebsd-glue And Its Dependencies
To uninstall freebsd-glue
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove freebsd-glue
Remove freebsd-glue Configurations and Data
To remove freebsd-glue
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge freebsd-glue
Remove freebsd-glue configuration, data, and all of its dependencies
We can use the following command to remove freebsd-glue
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge freebsd-glue
Dependencies
freebsd-glue have the following dependencies:
References
Summary
In this tutorial we learn how to install freebsd-glue
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.