Guide: Identifying and Displaying Installed Software in Linux Environments

Guide: Identifying and Displaying Installed Software in Linux Environments

Jeffrey Lv13

Guide: Identifying and Displaying Installed Software in Linux Environments

Key Takeaways

  • To see installed apps on Ubuntu, use the “apt list –installed” command in your terminal, or “dnf list installed” for Fedora.
  • On an Arch-based system, you can use the “pacman -Q” command.
  • If you use Flatpaks or Snaps, try the “flatpak list” or “snap list” commands.

With thousands of free Linux applications, it’s easy to lose track of what you once installed but no longer use. Here’s how to list the installed applications on the major Linux families, and a few methods that don’t depend on your Linux distribution.

Take advantage of PREMIUM features for 12 months.
Create your texts / logos without any limitation.
No attribution required when downloading.
No advertising on the website.
TextStudio.com PREMIUM - Yearly Membership

What Are Packages on Linux Systems?

Packages on Linux are similar to apps or program installers on macOS and Windows—broadly speaking. They come bundled in an archive file that you typically download from a central repository. Different Linux distributions use different formats to deliver these files to you—Debian and Ubuntu use DEB files, for example, while RHEL and Fedora use RPM files.

Packages aren’t necessarily complete, precompiled programs, however. Sometimes they’re libraries , which provide important functionality to other applications on your PC.

Packages are typically installed, updated, and removed using a package manager . The package manager will also try to grab any dependencies when you install an application, too, so you don’t need to manually hunt down every single piece of code any given application requires to operate.

There are a few major package managers that you’ll commonly encounter. Red Hat-derived distributions (like Fedora) use the dnf package manager, Debian-derived distributions (like Ubuntu) use apt, and Arch-based distributions use pacman. There are also a few distribution-agnostic package managers like Snap and Flatpak that you can use on most any Linux system.

www.sentrypc.com

Apt: List Installed Packages on Ubuntu

The apt command allows you to use the package manager for the Debian distribution and the many distributions that have sprung from it, including Ubuntu .

Apt is the replacement for the older apt-get command. Apt and apt-get share most of their syntax, so if you find instructions that call for apt-get, you can usually substitute apt without any issue.

To see the list of installed packages, use this command:

apt list –installed

listing installed apps with apt

As expected, the output is long and scrolls past quickly.

The output from the apt list command

To see how many entries there are, we can pipe through wc, as we did before.

apt list –installed | wc -l

counting installed apps with apt and wc

To find packages of interest, we can use grep and part of the name or topic we’re interested in.

apt list –installed | grep xfonts

Using grep to search for specific entries in the apt output

vMix HD - Software based live production. vMix HD includes everything in vMix Basic HD plus 1000 inputs, Video List, 4 Overlay Channels, and 1 vMix Call
This bundle includes Studio 200 for vMix from Virtualsetworks, HTTP Matrix 1.0 automation scheduler, and 4 introductory training videos from the Udemy vMix Basic to Amazing course.

To investigate a single package, use the apt show command with the name of the package.

apt show xml-core

Getting the details of a single app with apt

Related: apt vs. apt-get: What’s the Difference on Linux?

DNF: List Installed Packages on Fedora

Fedora is the most successful of the RedHat-derived desktop distributions. We’ll use that to discuss listing installed applications with the dnf package manager.

To list the installed packages with dnf, run the following command:

dnf list installed

listing installed apps with dnf

This produces an avalanche of information.

Listing of installed apps from dnf

Epubor Audible Converter for Mac: Download and convert Audible AAXC/AA/AAX to MP3 with 100% original quality preserved.

To see how many packages were listed, we can pass the output through wc, with the -l (lines) option.

counting the installed apps with dnf and wc

Forex Robotron Basic Package

This tells us dnf found 1,968 installed packages. To make the output more manageable you could pipe it into grep , and search for packages of interest.

dnf list installed | grep terminal

Using grep to search for specific entries in the output from dnf

You could also pipe the output into less and use the search function within less to find what you are looking for.

If you see a package in the list that you want to know more about—which is a good idea if you’re considering removing it—you can use the dnf info command.

You need to provide the name of the package without the platform architecture details. For example, to see the details of the package “gnome-terminal.x86_64” you’d type:

dnf info gnome-terminal

getting the details of a single application with dnf

Pacman: List Installed Packages on Arch

The pacman package manager is used on Arch Linux and its derivatives, such as Manjaro and EndeavourOS .

To list packages using pacman we need to use the -Q (query) option.

pacman -Q

Listing installed apps with pacman

The list of packages is displayed in the terminal window.

List of installed applications from pacman

Installing a single application is likely to cause multiple packages to be installed, because of unmet dependencies. If the application requires a particular library and it isn’t present on your computer, the installation will provide it. Similarly, uninstalling an application can cause several packages to be removed. So the number of applications isn’t the same as the number of packages.

To count the installed packages, we pipe the output through wc and use the -l (lines) option, as before.

pacman -Q | wc -l

counting the installed apps with pacman and wc

The -i (info) option lets us look at the details of a package.

pacman -Qi bash

Getting information on a single app with pacman

Adding the -i option twice can provide a bit more information, if any is available.

pacman -Qii bash

Using the -i option twice with pacman

In this case, there are some extra lines at the bottom of the listing that show where the “.bash_profile” and “.bash_logout” template files are located.

extra information provided by using the -i option twice with pacman

Flatpak: List Installed Packages on Any Distro

There are ways to install applications that are distribution agnostic. They’re designed to be universal package managers. They install sandboxed versions of apps, including any dependencies they have. This makes it easy to install different versions of an application without having to worry about incompatibilities or cross-contamination from version to version.

From the software developer’s perspective, using a universal package manager means they only have to package their application once and they’ve got all distributions covered.

The flatpak system is one of the two most popular universal installers. If you’ve used flatpak on your computer, you can still list the installed applications with the following command:

flatpak list

listing installed apps with flatpak


VSDC Pro Video Editor is a light professional non-linear video editing suite for creating a movie of any complexity. It supports the most popular video/audio formats and codecs, including 4K, HD and GoPro videos. Preconfigured profiles make the creation of videos for various multimedia and mobile devices absolutely hassle-free.

Key features:

• Import from any devices and cams, including GoPro and drones. All formats supported. Сurrently the only free video editor that allows users to export in a new H265/HEVC codec, something essential for those working with 4K and HD.
• Everything for hassle-free basic editing: cut, crop and merge files, add titles and favorite music
• Visual effects, advanced color correction and trendy Instagram-like filters
• All multimedia processing done from one app: video editing capabilities reinforced by a video converter, a screen capture, a video capture, a disc burner and a YouTube uploader
• Non-linear editing: edit several files with simultaneously
• Easy export to social networks: special profiles for YouTube, Facebook, Vimeo, Twitter and Instagram
• High quality export – no conversion quality loss, double export speed even of HD files due to hardware acceleration
• Stabilization tool will turn shaky or jittery footage into a more stable video automatically.
• Essential toolset for professional video editing: blending modes, Mask tool, advanced multiple-color Chroma Key

This lists the installed applications and the associated runtimes that have been installed to satisfy the dependencies of those applications. To see just the applications, add the --app option.

flatpak list –app

listing apps and excluding supporting files using flatpak

Epubor Audible Converter for Win: Download and convert Audible AAXC/AA/AAX to MP3 with 100% original quality preserved.

To see the details of an individual application, use the info command and the application ID of the package, not the application name.

flatpak info org.blender.Blender

Seeing the details of a single flatpak app

Snap: List Installed Packages on Any Distro

The other popular universal package manager is called snap . It is a Canonical initiative. It is used by default in the Ubuntu Software application on recent Ubuntu releases and snap can be installed on other distributions too.

To list the applications that have been installed using snap, use this command:

snap list

listing installed applications with snap

To see the details for a single application, use the snap info command and the name of the application.

snap info firefox

getting the details of a single snap app

Take advantage of PREMIUM features.
Create your texts / logos without any limitation.
No attribution required when downloading.
No advertising on the website.
TextStudio.com PREMIUM - Monthly Membership

Why Check Installed Packages and Applications?

The choice of free and open-source applications available to Linux users is astonishing. For a newcomer to Linux it can be overwhelming. But it’s also part of the fun. If you have a particular need, you search for a piece of software to address that need. If you don’t get along with the one you find, that’s no problem. There are likely to be dozens more that you can try until you find one that ticks all of your boxes.

If you’re not scrupulous about uninstalling the ones you know you won’t use, they’ll sit in your system using up hard drive space . If you’re a programmer you’ll also have unused toolkits and libraries dotted around your computer. On a desktop computer, with today’s reasonably cheap, high-capacity drives , that might not in itself be too much of a problem. On laptops , it is more of a concern because of their smaller storage capacities.

But whether you have the hard drive space to spare or not, hoarding unused software means software updates will take longer because you’re updating all of those unused applications along with the ones that you actually do use. System images and other backups will be larger than necessary, will take longer to complete, and will consume more backup media.

There’s also the possibility of incompatibilities between components of installed and forgotten applications and new ones you try to install.

In order to manage the situation, the obvious first step is to find out what is installed. Once you know what, you can review the list and decide what stays and what goes.

Make Informed Decisions

dnf, apt, and pacman have options that automatically find and delete orphaned and unneeded packages. But they won’t find old packages that you just don’t use anymore. That requires human intervention and the knowledge of what requires uninstalling. That’s where these handy commands come in.

After clearing up space, you may be interested in learning how to install Android apps on your Linux device .

  • Title: Guide: Identifying and Displaying Installed Software in Linux Environments
  • Author: Jeffrey
  • Created at : 2024-08-30 09:05:12
  • Updated at : 2024-08-31 09:05:12
  • Link: https://some-knowledge.techidaily.com/guide-identifying-and-displaying-installed-software-in-linux-environments/
  • License: This work is licensed under CC BY-NC-SA 4.0.