How To Install libreoffice-gtk2 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libreoffice-gtk2 on Ubuntu 20.04.
What is libreoffice-gtk2
libreoffice-gtk2 is:
This package used to contain the LibreOffice gtk2 backend.
You can safely remove this package.
Package: libreoffice-gtk2 Architecture: all Version: 1:6.4.2-0ubuntu3 Priority: optional Section: universe/gnome Source: libreoffice Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian LibreOffice Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 228 Filename: pool/universe/libr/libreoffice/libreoffice-gtk2_6.4.2-0ubuntu3_all.deb Size: 8060 MD5sum: 736fbae98d121b549f7408a5b712c310 SHA1: 51296b21a7be26b646c4965801e795997b4a5ffc SHA256: 22eec42fecb32f65f644c8efc493eca88f787f9040c56ad8de8283cfffbf84bd Homepage: http://www.libreoffice.org Description-en: transitional package for LibreOffice gtk2 backend This package used to contain the LibreOffice gtk2 backend.
You can safely remove this package.
There are three methods to install libreoffice-gtk2 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 libreoffice-gtk2 Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libreoffice-gtk2 using apt-get by running the following command:
sudo apt-get -y install libreoffice-gtk2
Install libreoffice-gtk2 Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libreoffice-gtk2 using apt by running the following command:
sudo apt -y install libreoffice-gtk2
Install libreoffice-gtk2 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 libreoffice-gtk2 using aptitude by running the following command:
sudo aptitude -y install libreoffice-gtk2
How To Uninstall libreoffice-gtk2 on Ubuntu 20.04
To uninstall only the libreoffice-gtk2 package we can use the following command:
sudo apt-get remove libreoffice-gtk2
Uninstall libreoffice-gtk2 And Its Dependencies
To uninstall libreoffice-gtk2 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libreoffice-gtk2
Remove libreoffice-gtk2 Configurations and Data
To remove libreoffice-gtk2 configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libreoffice-gtk2
Remove libreoffice-gtk2 configuration, data, and all of its dependencies
We can use the following command to remove libreoffice-gtk2 configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libreoffice-gtk2
References
Summary
In this tutorial we learn how to install libreoffice-gtk2 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.