How To Install desktop-file-utils on Ubuntu 20.04

In this tutorial we learn how to install desktop-file-utils on Ubuntu 20.04. desktop-file-utils is Utilities for .desktop files Utilities for .desktop files

Introduction

In this tutorial we learn how to install desktop-file-utils on Ubuntu 20.04.

What is desktop-file-utils

desktop-file-utils is:

Some utilities to make dealing with .desktop files easier:

  • update-desktop-database – update the desktop-MIME mapping
  • desktop-file-validate – validate a desktop file
  • desktop-file-install – install a desktop file, munging en route. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: desktop-file-utils Architecture: amd64 Version: 0.24-1ubuntu2 Multi-Arch: foreign Priority: optional Section: devel Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian freedesktop.org maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 267 Depends: libc6 (>= 2.7), libglib2.0-0 (>= 2.28.0) Filename: pool/main/d/desktop-file-utils/desktop-file-utils_0.24-1ubuntu2_amd64.deb Size: 50624 MD5sum: 19853f24d58618aa04b5d6dcc13f96c1 SHA1: 5d8af53b9c7da6cbd2b5bb9a1884c7e3c15c9a56 SHA256: 5fff8ad0b61c72e64e2710f42b5834ee467b5e7c80a2211b5b7b3c57f8cf8941 Homepage: http://www.freedesktop.org/wiki/Software/desktop-file-utils Description-en: Utilities for .desktop files Some utilities to make dealing with .desktop files easier:

  • update-desktop-database – update the desktop-MIME mapping
  • desktop-file-validate – validate a desktop file
  • desktop-file-install – install a desktop file, munging en route. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install desktop-file-utils on Ubuntu 20.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 desktop-file-utils Using apt-get

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

sudo apt-get update

After updating apt database, We can install desktop-file-utils using apt-get by running the following command:

sudo apt-get -y install desktop-file-utils

Install desktop-file-utils Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install desktop-file-utils using apt by running the following command:

sudo apt -y install desktop-file-utils

Install desktop-file-utils 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 desktop-file-utils using aptitude by running the following command:

sudo aptitude -y install desktop-file-utils

How To Uninstall desktop-file-utils on Ubuntu 20.04

To uninstall only the desktop-file-utils package we can use the following command:

sudo apt-get remove desktop-file-utils

Uninstall desktop-file-utils And Its Dependencies

To uninstall desktop-file-utils and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove desktop-file-utils

Remove desktop-file-utils Configurations and Data

To remove desktop-file-utils configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge desktop-file-utils

Remove desktop-file-utils configuration, data, and all of its dependencies

We can use the following command to remove desktop-file-utils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge desktop-file-utils

References

Summary

In this tutorial we learn how to install desktop-file-utils package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.