How To Install libxen-dev on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libxen-dev
on Ubuntu 18.04.
What is libxen-dev
libxen-dev is:
This package contains the public headers and static libraries for Xen.
The libxenlight library is intended as a common base for all Xen toolstack developers. The libxlutil library contains additional helpers which may be useful to toolstack developers.
The libxenstore library allows userspace processes to interact with the XenStore database. XenStore is a shared database used for interdomain communication of configuration and status information. It is accessible to all domains running on the same Xen host. See http://wiki.xen.org/wiki/XenStore for more information.
The libxenctrl and libxenguest libraries are internal libraries intended for use by the Xen toolstack and are not intended to be used directly. Toolstack authors should use libxenlight.
There are three methods to install libxen-dev
on Ubuntu 18.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 libxen-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 libxen-dev
using apt-get
by running the following command:
sudo apt-get -y install libxen-dev
Install libxen-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxen-dev
using apt
by running the following command:
sudo apt -y install libxen-dev
Install libxen-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libxen-dev
using aptitude
by running the following command:
sudo aptitude -y install libxen-dev
How To Uninstall libxen-dev on Ubuntu 18.04
To uninstall only the libxen-dev
package we can use the following command:
sudo apt-get remove libxen-dev
Uninstall libxen-dev And Its Dependencies
To uninstall libxen-dev
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libxen-dev
Remove libxen-dev Configurations and Data
To remove libxen-dev
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libxen-dev
Remove libxen-dev configuration, data, and all of its dependencies
We can use the following command to remove libxen-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxen-dev
References
Summary
In this tutorial we learn how to install libxen-dev
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.