How to List the Installed Packages on Linux

Linux laptop showing a bash prompt
fatmawati achmad zaenuri/Shutterstock.com

With hundreds of absolutely free Linux apps, it’s simple to lose monitor of what you after mounted but no lengthier use. Here’s how to record the put in apps on the major Linux households.

The Application Graveyard

The preference of free and open up-source apps out there to Linux end users is astonishing. For a newcomer to Linux it can be mind-boggling. But it’s also component of the enjoyable. If you have a individual need, you look for for a piece of program to tackle that have to have. If you never get alongside with the just one you locate, which is no difficulty. There are most likely to be dozens extra that you can attempt right up until you obtain one particular that ticks all of your packing containers.

If you are not scrupulous about uninstalling the ones you know you will not use, they’ll sit in your method using up really hard travel space. If you’re a programmer you will also have unused toolkits and libraries dotted all over your computer system. On a desktop computer system, with today’s reasonably low cost, substantial-potential drives, that could not in itself be far too a lot of a problem. On laptops, it is far more of a issue simply because of their smaller sized storage capacities.

But whether you have the tough travel place to spare or not, hoarding unused software program suggests software package updates will consider lengthier for the reason that you are updating all of those people unused applications along with the kinds that you in fact do use. Process images and other backups will be larger than important, will acquire more time to full, and will consume additional backup media.

There is also the possibility of incompatibilities involving components of put in and forgotten purposes and new ones you check out to set up.

In order to deal with the problem, the noticeable first step is to come across out what is set up. At the time you know what, you can evaluation the list and determine what stays and what goes. How you uncover out what has been installed differs from Linux distribution to distribution. RedHat-derived distributions use the dnf package supervisor, Debian-derived distributions use apt , and Arch-based mostly distributions use pacman.

There are other distribution-agnostic installation procedures these kinds of as snap and flatpak that we will need to consider as well.

Listing Mounted Apps with dnf

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

To checklist the installed deals is quite clear-cut.

dnf record set up

listing installed apps with dnf

This provides an avalanche of information.

Listing of installed apps from dnf

To see how a lot of offers have been mentioned, we can move the output via wc, with the -l (lines) option.

counting the installed apps with dnf and wc

This tells us dnf located 1,968 set up deals. To make the output much more manageable you could pipe it into grep, and research for offers of curiosity.

dnf record put in | grep terminal

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

You could also pipe the output into considerably less and use the lookup operate in much less to discover what you are wanting for.

If you see a deal in the list that you want to know extra about—which is a very good thought if you’re taking into consideration taking away it—you can use the dnf data command.

You need to give the identify of the bundle with out the system architecture specifics. For case in point, to see the particulars of the deal “gnome-terminal.x86_64” you’d type:

dnf data gnome-terminal

getting the details of a single application with dnf

Connected: What is actually New in Fedora 36

Listing Mounted Apps with apt

The apt command is the substitute for the older apt-get command. It is the command-line resource for the Debian distribution, and the numerous distributions that have sprung from it, these types of as the complete Ubuntu relatives of distributions.

To see the list of set up deals, use this command:

apt list --installed

listing installed apps with apt

As anticipated, the output is extended and scrolls past immediately.

The output from the apt list command

To see how quite a few entries there are, we can pipe by wc, as we did just before.

apt listing --set up | wc -l

counting installed apps with apt and wc

To discover deals of desire, we can use grep and element of the name or subject we’re fascinated in.

apt checklist --set up | grep xfonts

Using grep to search for specific entries in the apt output

To examine a solitary deal, use the apt demonstrate command with the name of the bundle.

apt clearly show xml-main

Getting the details of a single app with apt

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

Listing Put in Programs With pacman

The pacman package supervisor is utilized on Arch Linux and its derivatives, these as Manjaro and EndeavourOS. To listing offers working with pacman we want to use the -Q (question) option.

pacman -Q

Listing installed apps with pacman

The list of packages is exhibited in the terminal window.

List of installed applications from pacman

Installing a solitary application is probable to result in various offers to be put in, simply because of unmet dependencies. If the software necessitates a specific library and it isn’t existing on your personal computer, the set up will supply it. Likewise, uninstalling an application can cause numerous offers to be eradicated. So the amount of programs isn’t the identical as the variety of deals.

To rely the put in packages, we pipe the output through wc and use the -l (traces) solution, as right before.

pacman -Q | wc -l

counting the installed apps with pacman and wc

The -i (details) selection allows us glimpse at the specifics of a deal.

pacman -Qi bash

Getting information on a single app with pacman

Introducing the -i alternative 2 times can provide a little bit extra facts, if any is obtainable.

pacman -Qii bash

Using the -i option twice with pacman

In this situation, there are some added traces at the bottom of the listing that present where by the “.bash_profile” and “.bash_logout” template data files are positioned.

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

Connected: Why I Switched From Ubuntu to Manjaro Linux

Listing Set up Programs With flatpak

There are methods to set up programs that are distribution agnostic. They are built to be universal package supervisors. They set up sandboxed variations of apps, together with any dependencies they have. This tends to make it effortless to set up distinctive versions of an application with out having to fret about incompatibilities or cross-contamination from version to edition.

From the software developer’s perspective, utilizing a universal package deal supervisor suggests they only have to package their software after and they’ve got all distributions included.

The flatpak method is a person of the two most common common installers. If you’ve utilized flatpak on your laptop or computer, you can however list the mounted programs.

flatpak list

listing installed apps with flatpak

This lists the installed applications and the related runtimes that have been set up to satisfy the dependencies of those people applications. To see just the apps, insert the --application alternative.

flatpak record --app

listing apps but excluding runtimes using flatpak

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

flatpak info org.blender.Blender

Seeing the details of a single flatpak app

Listing Installed Programs With snap

The other common universal offer manager is named snap. It is a Canonical initiative. It is applied by default in the Ubuntu Software package application on current Ubuntu releases and snap can be set up on other distributions too.

To checklist the programs that have been put in using snap, use this command.

snap list

listing installed applications with snap

To see the specifics for a single application, use the snap information command and the title of the application.

snap info firefox

getting the details of a single snap app

Associated: How to Function with Snap Packages on Linux

Make Educated Choices

dnf, apt, and pacman have choices that automatically uncover and delete orphaned and unneeded packages. But they will not locate aged offers that you just really do not use any longer. That demands human intervention and the information of what requires uninstalling. That is wherever these useful commands arrive in.

Soon after clearing up place, you may possibly be fascinated in studying how to put in Android applications on your Linux machine.

Stacee R. Grigg

Next Post

Soraluce Demonstrates Hardware and Software Advances at Annual Summit

Tue Jul 19 , 2022
Device device builder, Soraluce, not too long ago hosted the “Soraluce Summit” at its Bergara, Spain, facility to rejoice 60 a long time of setting up significant-precision equipment equipment. All through the 3-working day party, the corporation offered tours of its producing and assembly amenities and held reside demonstrations of […]

You May Like