How To Install sbuild-launchpad-chroot on Ubuntu 20.04

In this tutorial we learn how to install sbuild-launchpad-chroot on Ubuntu 20.04. sbuild-launchpad-chroot is Launchpad integration for sbuild Launchpad integration for sbuild

Introduction

In this tutorial we learn how to install sbuild-launchpad-chroot on Ubuntu 20.04.

What is sbuild-launchpad-chroot

sbuild-launchpad-chroot is:

This includes two sbuild hooks and a command line tool to setup and maintain build chroots that are as close as possible to a standard Launchpad sbuild chroot.

The sbuild-launchpad-chroot command can be used to setup, update and destroy those chroots. A schroot hook will also automatically update them should an update be available at the start of a build.

Those chroots also come with a series of useful aliases allowing the user to easily choose which pockets and components should be available for the build.

Package: sbuild-launchpad-chroot Architecture: all Version: 0.16 Priority: optional Section: universe/misc Origin: Ubuntu Maintainer: Stéphane Graber [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 37 Depends: python3, python3-launchpadlib, sbuild, ubuntu-dev-tools Filename: pool/universe/s/sbuild-launchpad-chroot/sbuild-launchpad-chroot_0.16_all.deb Size: 7704 MD5sum: 96117e25584e441be5f9c9b36719ff73 SHA1: 9d99f450db7191006a217151396d9f5f20b93132 SHA256: b1d66aea07de7827b402b4fb51a314483c7ee8f4af38fc55b26e29eec455f531 Homepage: http://www.stgraber.org Description-en: Launchpad integration for sbuild This includes two sbuild hooks and a command line tool to setup and maintain build chroots that are as close as possible to a standard Launchpad sbuild chroot.

The sbuild-launchpad-chroot command can be used to setup, update and destroy those chroots. A schroot hook will also automatically update them should an update be available at the start of a build.

Those chroots also come with a series of useful aliases allowing the user to easily choose which pockets and components should be available for the build.

There are three methods to install sbuild-launchpad-chroot on Ubuntu 20.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 sbuild-launchpad-chroot Using apt-get

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

sudo apt-get update

After updating apt database, We can install sbuild-launchpad-chroot using apt-get by running the following command:

sudo apt-get -y install sbuild-launchpad-chroot

Install sbuild-launchpad-chroot Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install sbuild-launchpad-chroot using apt by running the following command:

sudo apt -y install sbuild-launchpad-chroot

Install sbuild-launchpad-chroot 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 sbuild-launchpad-chroot using aptitude by running the following command:

sudo aptitude -y install sbuild-launchpad-chroot

How To Uninstall sbuild-launchpad-chroot on Ubuntu 20.04

To uninstall only the sbuild-launchpad-chroot package we can use the following command:

sudo apt-get remove sbuild-launchpad-chroot

Uninstall sbuild-launchpad-chroot And Its Dependencies

To uninstall sbuild-launchpad-chroot and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove sbuild-launchpad-chroot

Remove sbuild-launchpad-chroot Configurations and Data

To remove sbuild-launchpad-chroot configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge sbuild-launchpad-chroot

Remove sbuild-launchpad-chroot configuration, data, and all of its dependencies

We can use the following command to remove sbuild-launchpad-chroot configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge sbuild-launchpad-chroot

References

Summary

In this tutorial we learn how to install sbuild-launchpad-chroot package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.