How To Install ubuntu-defaults-builder on Ubuntu 18.04

In this tutorial we learn how to install ubuntu-defaults-builder on Ubuntu 18.04. ubuntu-defaults-builder is create Ubuntu customization packages

Introduction

In this tutorial we learn how to install ubuntu-defaults-builder on Ubuntu 18.04.

What is ubuntu-defaults-builder

ubuntu-defaults-builder is:

This tool allows you to create a “default settings” package for Ubuntu. The “ubuntu-defaults-template” script will generate a source package with the customizable settings (e. g. desktop/background.jpg and webbrowser/bookmarks-menu.txt). When built and installed, it will take the necessary actions to modify the system-wide defaults for desktops, programs, etc.

The main purpose for this is to provide a standard and safe way to create localized Ubuntu images, or OEM custom projects.

You can customize the following settings:

  • Web browser start page, default search engine, and bookmarks (supports Firefox right now)
  • Unity/Unity 2D launchers
  • Desktop background (for GNOME right now)
  • Default desktop session in LightDM/gdm
  • Default radio stations in Rhythmbox and Banshee
  • Extra dependencies (Depends: and Recommends:), i. e. packages that are installed by default on the customized image
  • Internationalization (default locale, keyboard layout, language support) (only for built images, not configured by the defaults package itself)

There are three methods to install ubuntu-defaults-builder 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 ubuntu-defaults-builder Using apt-get

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

sudo apt-get update

After updating apt database, We can install ubuntu-defaults-builder using apt-get by running the following command:

sudo apt-get -y install ubuntu-defaults-builder

Install ubuntu-defaults-builder Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ubuntu-defaults-builder using apt by running the following command:

sudo apt -y install ubuntu-defaults-builder

Install ubuntu-defaults-builder 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 ubuntu-defaults-builder using aptitude by running the following command:

sudo aptitude -y install ubuntu-defaults-builder

How To Uninstall ubuntu-defaults-builder on Ubuntu 18.04

To uninstall only the ubuntu-defaults-builder package we can use the following command:

sudo apt-get remove ubuntu-defaults-builder

Uninstall ubuntu-defaults-builder And Its Dependencies

To uninstall ubuntu-defaults-builder and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ubuntu-defaults-builder

Remove ubuntu-defaults-builder Configurations and Data

To remove ubuntu-defaults-builder configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ubuntu-defaults-builder

Remove ubuntu-defaults-builder configuration, data, and all of its dependencies

We can use the following command to remove ubuntu-defaults-builder configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ubuntu-defaults-builder

References

Summary

In this tutorial we learn how to install ubuntu-defaults-builder package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.