How To Install xnbd-server on Ubuntu 18.04
Introduction
In this tutorial we learn how to install xnbd-server
on Ubuntu 18.04.
What is xnbd-server
xnbd-server is:
xNBD is a NBD (Network Block Device) server program, which is fully compatible with the NBD client driver of Linux kernel. It adds extended features to the traditional NBD server:
- Better performance
- Support for distributed copy-on-write disks
- Live storage migration for virtual machines.
This is the server side of the program
There are three methods to install xnbd-server
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 xnbd-server Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install xnbd-server
using apt-get
by running the following command:
sudo apt-get -y install xnbd-server
Install xnbd-server Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install xnbd-server
using apt
by running the following command:
sudo apt -y install xnbd-server
Install xnbd-server 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 xnbd-server
using aptitude
by running the following command:
sudo aptitude -y install xnbd-server
How To Uninstall xnbd-server on Ubuntu 18.04
To uninstall only the xnbd-server
package we can use the following command:
sudo apt-get remove xnbd-server
Uninstall xnbd-server And Its Dependencies
To uninstall xnbd-server
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove xnbd-server
Remove xnbd-server Configurations and Data
To remove xnbd-server
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge xnbd-server
Remove xnbd-server configuration, data, and all of its dependencies
We can use the following command to remove xnbd-server
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge xnbd-server
References
Summary
In this tutorial we learn how to install xnbd-server
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.