How To Install libportal-tests-gtk4 on Debian 12
Introduction
In this tutorial we learn how to install libportal-tests-gtk4 on Debian 12.
What is libportal-tests-gtk4
libportal-tests-gtk4 is:
libportal provides GIO-style C APIs for most Flatpak portals’ D-Bus interfaces. It is primarily intended for installation in Flatpak runtimes, where applications can use it to interact with portals; it can also be used to test the portal services.
See the xdg-desktop-portal package’s description for more information about portals.
This package contains the org.gnome.PortalTest.Gtk4 application, and will contain “as-installed” test programs if they are added.
There are three methods to install libportal-tests-gtk4 on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libportal-tests-gtk4 Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libportal-tests-gtk4 using apt-get by running the following command:
sudo apt-get -y install libportal-tests-gtk4
Install libportal-tests-gtk4 Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libportal-tests-gtk4 using apt by running the following command:
sudo apt -y install libportal-tests-gtk4
Install libportal-tests-gtk4 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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install libportal-tests-gtk4 using aptitude by running the following command:
sudo aptitude -y install libportal-tests-gtk4
How To Uninstall libportal-tests-gtk4 on Debian 12
To uninstall only the libportal-tests-gtk4 package we can use the following command:
sudo apt-get remove libportal-tests-gtk4
Uninstall libportal-tests-gtk4 And Its Dependencies
To uninstall libportal-tests-gtk4 and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libportal-tests-gtk4
Remove libportal-tests-gtk4 Configurations and Data
To remove libportal-tests-gtk4 configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libportal-tests-gtk4
Remove libportal-tests-gtk4 configuration, data, and all of its dependencies
We can use the following command to remove libportal-tests-gtk4 configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libportal-tests-gtk4
Dependencies
libportal-tests-gtk4 have the following dependencies:
- gir1.2-gdkpixbuf-2.0
- gir1.2-gstreamer-1.0
- gir1.2-gtk-4.0
- gir1.2-pango-1.0
- gir1.2-xdp-1.0
- gir1.2-xdpgtk4-1.0
- gjs
References
Summary
In this tutorial we learn how to install libportal-tests-gtk4 package on Debian 12 using different package management tools: apt, apt-get and aptitude.