How To Install dput-ng on Ubuntu 18.04

In this tutorial we learn how to install dput-ng on Ubuntu 18.04. dput-ng is next generation Debian package upload tool

Introduction

In this tutorial we learn how to install dput-ng on Ubuntu 18.04.

What is dput-ng

dput-ng is:

dput-ng is a Debian package upload tool which provides an easy to use interface to Debian (like) package archive hosting facilities. It allows anyone who works with Debian packages to upload their work to a remote service, including Debian’s ftp-master, mentors.debian.net, Launchpad or other package hosting facilities for Debian package maintainers.

dput-ng features many enhancements over dput, such as more comprehensive checks, an easy to use plugin system, and code designed to handle the numerous archives that any Debian package hacker will interact with.

dput-ng aims to be backwards compatible with dput in command-line flags, configuration files, and expected behavior.

The recommended package python-paramiko is needed to upload via SSH.

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

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

sudo apt-get update

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

sudo apt-get -y install dput-ng

Install dput-ng Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dput-ng

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

sudo aptitude -y install dput-ng

How To Uninstall dput-ng on Ubuntu 18.04

To uninstall only the dput-ng package we can use the following command:

sudo apt-get remove dput-ng

Uninstall dput-ng And Its Dependencies

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

sudo apt-get -y autoremove dput-ng

Remove dput-ng Configurations and Data

To remove dput-ng configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dput-ng

Remove dput-ng configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dput-ng

References

Summary

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