How to List the Installed Packages on Linux

Susan R. Jones
Linux laptop showing a bash prompt
fatmawati achmad zaenuri/

With 1000’s of totally free Linux apps, it’s uncomplicated to reduce monitor of what you once set up but no for a longer time use. Here’s how to record the mounted applications on the major Linux family members.

The Application Graveyard

The choice of free and open up-supply apps offered to Linux end users is astonishing. For a newcomer to Linux it can be mind-boggling. But it’s also aspect of the fun. If you have a particular will need, you lookup for a piece of computer software to address that have to have. If you don’t get together with the a person you locate, that’s no issue. There are possible to be dozens extra that you can check out until eventually you come across one particular 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 push place. If you are a programmer you will also have unused toolkits and libraries dotted close to your laptop or computer. On a desktop pc, with today’s moderately low cost, large-ability drives, that may not in itself be way too a great deal of a dilemma. On laptops, it is much more of a worry due to the fact of their scaled-down storage capacities.

But whether you have the tricky travel room to spare or not, hoarding unused software program implies software package updates will take more time due to the fact you are updating all of those unused apps alongside with the types that you essentially do use. System photos and other backups will be more substantial than important, will get lengthier to complete, and will take in extra backup media.

There is also the probability of incompatibilities between elements of set up and neglected apps and new kinds you attempt to put in.

In order to regulate the predicament, the evident very first step is to discover out what is put in. Once you know what, you can assessment the list and come to a decision what stays and what goes. How you uncover out what has been put in varies 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 installation methods these types of as snap and flatpak that we require to consider also.

Listing Set up Purposes with dnf

Fedora is the most prosperous of the RedHat-derived desktop distributions. We’ll use that to talk about listing installed programs with the dnf package supervisor.

To record the put in packages is incredibly simple.

dnf list installed

listing installed apps with dnf

This provides an avalanche of details.

Listing of installed apps from dnf

To see how a lot of offers were outlined, we can move the output by wc, with the -l (lines) solution.

counting the installed apps with dnf and wc

This tells us dnf discovered 1,968 mounted deals. To make the output far more workable you could pipe it into grep, and look for for offers of curiosity.

dnf checklist put in | 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 lookup function inside much less to come across what you are on the lookout for.

If you see a offer in the listing that you want to know much more about—which is a good plan if you’re looking at eradicating it—you can use the dnf facts command.

You need to provide the name of the bundle with no the platform architecture aspects. For example, to see the details of the package “gnome-terminal.x86_64” you’d style:

dnf info gnome-terminal

getting the details of a single application with dnf

Linked: What is New in Fedora 36

Listing Set up Applications with apt

The apt command is the replacement for the older apt-get command. It is the command-line resource for the Debian distribution, and the many distributions that have sprung from it, such as the full Ubuntu household of distributions.

To see the checklist of mounted offers, use this command:

apt listing --installed

listing installed apps with apt

As expected, the output is extended and scrolls previous rapidly.

The output from the apt list command

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

apt listing --mounted | wc -l

counting installed apps with apt and wc

To locate packages of fascination, we can use grep and element of the identify or subject matter we’re intrigued in.

apt listing --put in | grep xfonts

Using grep to search for specific entries in the apt output

To examine a single deal, use the apt demonstrate command with the title of the bundle.

apt show xml-main

Getting the details of a single app with apt

Associated: apt vs. apt-get: What is the Change on Linux?

Listing Mounted Apps With pacman

The pacman package deal supervisor is employed on Arch Linux and its derivatives, such as Manjaro and EndeavourOS. To record deals making use of pacman we have to have to use the -Q (question) selection.

pacman -Q

Listing installed apps with pacman

The list of packages is displayed in the terminal window.

List of installed applications from pacman

Putting in a solitary software is possible to induce numerous packages to be put in, for the reason that of unmet dependencies. If the software needs a unique library and it is not current on your laptop, the installation will give it. Likewise, uninstalling an application can induce several offers to be eradicated. So the range of programs is not the exact same as the selection of offers.

To rely the put in offers, we pipe the output through wc and use the -l (strains) solution, as ahead of.

pacman -Q | wc -l

counting the installed apps with pacman and wc

The -i (information) possibility allows us seem at the particulars of a package.

pacman -Qi bash

Getting information on a single app with pacman

Incorporating the -i selection two times can provide a little bit much more information and facts, if any is available.

pacman -Qii bash

Using the -i option twice with pacman

In this circumstance, there are some additional lines at the bottom of the listing that demonstrate the place the “.bash_profile” and “.bash_logout” template files are positioned.

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

Similar: Why I Switched From Ubuntu to Manjaro Linux

Listing Put in Apps With flatpak

There are methods to install apps that are distribution agnostic. They’re developed to be universal offer professionals. They install sandboxed versions of applications, which include any dependencies they have. This would make it easy to set up distinct versions of an application without owning to stress about incompatibilities or cross-contamination from model to version.

From the computer software developer’s standpoint, working with a common package supervisor usually means they only have to deal their application once and they’ve received all distributions included.

The flatpak system is a person of the two most preferred common installers. If you’ve utilized flatpak on your personal computer, you can however record the set up apps.

flatpak list

listing installed apps with flatpak

This lists the put in purposes and the involved runtimes that have been put in to satisfy the dependencies of those people apps. To see just the apps, increase the --app selection.

flatpak list --application

listing apps but excluding runtimes using flatpak

To see the specifics of an particular person software, use the facts command and the application ID of the package, not the application identify.

flatpak details org.blender.Blender

Seeing the details of a single flatpak app

Listing Mounted Programs With snap

The other popular common package manager is named snap. It is a Canonical initiative. It is utilised by default in the Ubuntu Software package software on the latest Ubuntu releases and snap can be set up on other distributions way too.

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

snap list

listing installed applications with snap

To see the specifics for a one application, use the snap info command and the name of the application.

snap data firefox

getting the details of a single snap app

Similar: How to Do the job with Snap Packages on Linux

Make Educated Decisions

dnf, apt, and pacman have choices that automatically come across and delete orphaned and unneeded packages. But they won’t discover old packages that you just really do not use anymore. That calls for human intervention and the expertise of what requires uninstalling. That is exactly where these helpful instructions occur in.

Right after clearing up house, you may perhaps be interested in understanding how to set up Android apps on your Linux unit.

Next Post

‘First’ non-electric electrolysis technology unveiled by Utility Global

Houston, Texas-based Utility International statements to have invented the industry’s to start with non-electric electrolysis engineering system for the potential to develop Internet Zero hydrogen conversion. The eXEROTM (Electroless Coupled Trade Reduction Oxidation) Process is a ‘solid action forward’ in the decarbonisation and greater sustainability of the world-wide strength industry, […]