How To Install sbuild-launchpad-chroot on Ubuntu 18.04
Introduction
In this tutorial we learn how to install sbuild-launchpad-chroot
on Ubuntu 18.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.
There are three methods to install sbuild-launchpad-chroot
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 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 18.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 18.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 18.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 18.04 using different package management tools: apt
, apt-get
and aptitude
.