How To Install deb-gview on Ubuntu 18.04

In this tutorial we learn how to install deb-gview on Ubuntu 18.04. deb-gview is GNOME viewer for .deb package files and contents

Introduction

In this tutorial we learn how to install deb-gview on Ubuntu 18.04.

What is deb-gview

deb-gview is:

Displays Debian control information, devscript details and details of the files that would be installed (names, sizes and locations). Files within the package can be viewed within the package or externally.

Accepts package locations on the command line to support the ‘open’ command in various file managers, one window for each package. Packages do not need to be installed to be viewed. Opening a changes file opens a new window for each package specified in the changes file.

Individual package files or packages referenced in a changes file can be viewed from local or remote filesystems.

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

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

sudo apt-get update

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

sudo apt-get -y install deb-gview

Install deb-gview Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install deb-gview

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

sudo aptitude -y install deb-gview

How To Uninstall deb-gview on Ubuntu 18.04

To uninstall only the deb-gview package we can use the following command:

sudo apt-get remove deb-gview

Uninstall deb-gview And Its Dependencies

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

sudo apt-get -y autoremove deb-gview

Remove deb-gview Configurations and Data

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

sudo apt-get -y purge deb-gview

Remove deb-gview configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge deb-gview

References

Summary

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