How to List the Installed Packages on Linux

Linux laptop showing a bash prompt
fatmawati achmad zaenuri/

With thousands of cost-free Linux programs, it is effortless to get rid of observe of what you the moment installed but no more time use. Here’s how to list the set up programs on the key Linux families.

The Application Graveyard

The choice of cost-free and open up-source apps accessible to Linux customers is astonishing. For a newcomer to Linux it can be mind-boggling. But it’s also section of the exciting. If you have a distinct need to have, you research for a piece of software to handle that want. If you really do not get alongside with the 1 you discover, which is no challenge. There are probably to be dozens additional that you can try right up until you locate one that ticks all of your boxes.

If you are not scrupulous about uninstalling the ones you know you will not use, they’ll sit in your system utilizing up difficult generate house. If you’re a programmer you’ll also have unused toolkits and libraries dotted all over your personal computer. On a desktop laptop or computer, with today’s reasonably low-priced, higher-capacity drives, that might not in itself be far too much of a trouble. On laptops, it is a lot more of a concern due to the fact of their lesser storage capacities.

But irrespective of whether you have the difficult drive room to spare or not, hoarding unused application implies software program updates will just take for a longer period for the reason that you are updating all of those unused applications alongside with the kinds that you really do use. Procedure images and other backups will be larger than required, will acquire for a longer time to finish, and will eat a lot more backup media.

There is also the likelihood of incompatibilities between factors of set up and overlooked programs and new types you attempt to put in.

In buy to regulate the situation, the noticeable to start with stage is to locate out what is installed. At the time you know what, you can evaluate the record and come to a decision what stays and what goes. How you uncover out what has been mounted differs from Linux distribution to distribution. RedHat-derived distributions use the dnf package deal manager, Debian-derived distributions use apt , and Arch-based mostly distributions use pacman.

There are other distribution-agnostic set up techniques these as snap and flatpak that we need to have to look at too.

Listing Set up Applications with dnf

Fedora is the most profitable of the RedHat-derived desktop distributions. We’ll use that to focus on listing put in applications with the dnf offer manager.

To listing the put in packages is pretty simple.

dnf checklist installed

listing installed apps with dnf

This produces an avalanche of details.

Listing of installed apps from dnf

To see how quite a few packages had been shown, we can move the output as a result of wc, with the -l (strains) selection.

counting the installed apps with dnf and wc

This tells us dnf uncovered 1,968 mounted offers. To make the output additional workable you could pipe it into grep, and search for deals of desire.

dnf list set up | 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 research operate inside of fewer to find what you are seeking for.

If you see a package deal in the list that you want to know extra about—which is a excellent notion if you’re contemplating getting rid of it—you can use the dnf facts command.

You require to offer the title of the offer without the need of the platform architecture details. For illustration, to see the facts of the package “gnome-terminal.x86_64” you’d form:

dnf facts gnome-terminal

getting the details of a single application with dnf

Similar: What’s New in Fedora 36

Listing Installed Programs with apt

The apt command is the substitute for the older apt-get command. It is the command-line device for the Debian distribution, and the several distributions that have sprung from it, this kind of as the whole Ubuntu relatives of distributions.

To see the listing of mounted packages, use this command:

apt record --put in

listing installed apps with apt

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

The output from the apt list command

To see how numerous entries there are, we can pipe through wc, as we did prior to.

apt list --put in | wc -l

counting installed apps with apt and wc

To uncover offers of interest, we can use grep and aspect of the name or topic we’re intrigued in.

apt record --mounted | grep xfonts

Using grep to search for specific entries in the apt output

To examine a one offer, use the apt exhibit command with the title of the package deal.

apt show xml-main

Getting the details of a single app with apt

Relevant: apt vs. apt-get: What is the Big difference on Linux?

Listing Installed Programs With pacman

The pacman deal manager is applied on Arch Linux and its derivatives, these as Manjaro and EndeavourOS. To listing packages utilizing pacman we require to use the -Q (question) selection.

pacman -Q

Listing installed apps with pacman

The checklist of packages is shown in the terminal window.

List of installed applications from pacman

Installing a solitary application is very likely to lead to various deals to be set up, because of unmet dependencies. If the software needs a particular library and it is not present on your pc, the set up will supply it. In the same way, uninstalling an application can lead to various offers to be taken out. So the variety of apps is not the similar as the number of deals.

To count the put in packages, we pipe the output through wc and use the -l (lines) solution, as just before.

pacman -Q | wc -l

counting the installed apps with pacman and wc

The -i (info) choice lets us glance at the aspects of a deal.

pacman -Qi bash

Getting information on a single app with pacman

Incorporating the -i possibility twice can offer a little bit more information, if any is offered.

pacman -Qii bash

Using the -i option twice with pacman

In this situation, there are some extra strains at the bottom of the listing that show the place the “.bash_profile” and “.bash_logout” template data files are situated.

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

Linked: Why I Switched From Ubuntu to Manjaro Linux

Listing Mounted Apps With flatpak

There are ways to put in programs that are distribution agnostic. They are designed to be universal package deal administrators. They install sandboxed versions of apps, such as any dependencies they have. This will make it quick to set up unique versions of an application without the need of acquiring to fret about incompatibilities or cross-contamination from edition to edition.

From the program developer’s perspective, utilizing a universal offer manager usually means they only have to package their software the moment and they’ve got all distributions coated.

The flatpak system is one of the two most well-known universal installers. If you have made use of flatpak on your pc, you can however record the mounted apps.

flatpak checklist

listing installed apps with flatpak

This lists the mounted purposes and the connected runtimes that have been mounted to fulfill the dependencies of all those applications. To see just the programs, include the --application solution.

flatpak listing --app

listing apps but excluding runtimes using flatpak

To see the facts of an specific software, use the details command and the software ID of the deal, not the application name.

flatpak info org.blender.Blender

Seeing the details of a single flatpak app

Listing Put in Apps With snap

The other common common deal manager is called snap. It is a Canonical initiative. It is applied by default in the Ubuntu Software application on recent Ubuntu releases and snap can be put in on other distributions too.

To listing the apps that have been set up using snap, use this command.

snap checklist

listing installed applications with snap

To see the particulars for a single software, use the snap info command and the name of the software.

snap details firefox

getting the details of a single snap app

Linked: How to Get the job done with Snap Deals on Linux

Make Knowledgeable Conclusions

dnf, apt, and pacman have options that automatically find and delete orphaned and unneeded offers. But they won’t uncover previous packages that you just never use any longer. That necessitates human intervention and the information of what calls for uninstalling. That is in which these handy instructions occur in.

Right after clearing up room, you may well be intrigued in finding out how to set up Android applications on your Linux unit.