How To Install dpkg-www on Ubuntu 18.04

In this tutorial we learn how to install dpkg-www on Ubuntu 18.04. dpkg-www is Web based Debian package browser

Introduction

In this tutorial we learn how to install dpkg-www on Ubuntu 18.04.

What is dpkg-www

dpkg-www is:

With the dpkg cgi-bin you can browse Debian packages on a local or remote host using a normal web browser.

You can list packages, show package information and installed files, browse documentation and navigate through the packages dependencies. You can also find all the packages owners of a file or directory or those providing a virtual package.

If you are the system administrator you can also install or remove packages by clicking on the buttons found in the package info page, provided that this feature has been enabled and you have properly configured your web browser.

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

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

sudo apt-get update

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

sudo apt-get -y install dpkg-www

Install dpkg-www Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dpkg-www

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

sudo aptitude -y install dpkg-www

How To Uninstall dpkg-www on Ubuntu 18.04

To uninstall only the dpkg-www package we can use the following command:

sudo apt-get remove dpkg-www

Uninstall dpkg-www And Its Dependencies

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

sudo apt-get -y autoremove dpkg-www

Remove dpkg-www Configurations and Data

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

sudo apt-get -y purge dpkg-www

Remove dpkg-www configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dpkg-www

References

Summary

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