How To Install xen-tools on Debian 9

In this tutorial we learn how to install xen-tools on Debian 9. xen-tools is Tools to manage Xen virtual servers

Introduction

In this tutorial we learn how to install xen-tools on Debian 9.

What is xen-tools

xen-tools is:

This package contains tools to manage Debian based Xen virtual servers.

Using the scripts you can easily create fully configured Xen guest domains (DomU) which can be listed, updated, or copied easily.

xen-tools currently can install:

  • Debian 3.1 Sarge (i386 only)
  • Debian 4.0 Etch
  • Debian 5.0 Lenny
  • Debian 6.0 Squeeze
  • Debian 7 Wheezy
  • Debian 8 Jessie
  • Debian 9 Stretch (under development)
  • Debian 10 Buster (future release name)
  • Debian 11 Bullseye (future release name)
  • Debian Sid (Unstable)
  • Ubuntu 6.06 Dapper Drake (LTS)
  • Ubuntu 6.10 Edgy Eft
  • Ubuntu 7.04 Feisty Fawn
  • Ubuntu 7.10 Gutsy Gibbon
  • Ubuntu 8.04 Hardy Heron (LTS)
  • Ubuntu 8.10 Intrepid Ibex
  • Ubuntu 9.04 Jaunty Jackaplope
  • Ubuntu 9.10 Karmic Koala
  • Ubuntu 10.04 Lucid Lynx (LTS)
  • Ubuntu 10.10 Maverick Meerkat
  • Ubuntu 11.04 Natty Narwhal
  • Ubuntu 11.10 Oneiric Ocelot
  • Ubuntu 12.04 Precise Pangolin (LTS)
  • Ubuntu 12.10 Quantal Quetzal
  • Ubuntu 13.04 Raring Ringtail
  • Ubuntu 13.10 Saucy Salamander
  • Ubuntu 14.04 Trusty Tahr (LTS)
  • Ubuntu 14.10 Utopic Unicorn
  • Ubuntu 15.04 Vivid Vervet
  • Ubuntu 15.10 Wily Werewolf
  • Ubuntu 16.04 Xenial Xerus (LTS)
  • Ubuntu 16.10 Yakkety Yak
  • Ubuntu 17.04 Zesty Zapus (preliminary support, under development)
  • CentOS 5
  • CentOS 6

There are three methods to install xen-tools 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 xen-tools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xen-tools using apt-get by running the following command:

sudo apt-get -y install xen-tools

Install xen-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xen-tools using apt by running the following command:

sudo apt -y install xen-tools

Install xen-tools 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 xen-tools using aptitude by running the following command:

sudo aptitude -y install xen-tools

How To Uninstall xen-tools on Debian 9

To uninstall only the xen-tools package we can use the following command:

sudo apt-get remove xen-tools

Uninstall xen-tools And Its Dependencies

To uninstall xen-tools and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove xen-tools

Remove xen-tools Configurations and Data

To remove xen-tools configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge xen-tools

Remove xen-tools configuration, data, and all of its dependencies

We can use the following command to remove xen-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xen-tools

Dependencies

xen-tools have the following dependencies:

References

Summary

In this tutorial we learn how to install xen-tools package on Debian 9 using different package management tools: apt, apt-get and aptitude.