Now Reading: How to list installed packages on Debian 12

Loading
svg
Open

How to list installed packages on Debian 12

January 6, 20247 min read

debian 12 bookworm Debian is the latest series of systems that comes with advanced features, latest security patches and bug fixes. Like other Linux systems, it includes pre-installed packages that are unknown to users. Keeping track of the packages installed on your Debian system is a useful function as it allows you to manage your system effectively. If you find the list of packages installed on Debian, you will be able to decide if a specific package is needed or it is better to remove it from the system to free up disk space.

In this guide, you will learn:

How to list installed packages on Debian 12

conclusion

How to list installed packages on Debian 12

In the Debian system, packages are managed by the apt and dpkg package management tools that allow users to install packages on the system. apt package manager is a high-level tool that is easy to use and handles dependency issues automatically. When dpkg package manager There is a low-level tool that works similar to apt but is harder to understand for beginners who are new to Linux systems. However, in general APT depends on dpkg for installation and removal of packages, thus they are linked to each other.

If you want to list the packages installed on Debian 12, you can use:

  • apt package manager
  • dpkg package manager
  • Synaptic Package Manager

How to list installed packages on Debian 12 using apt package manager

appropriate list is a powerful command that displays a list of packages that you can install on your Debian system. by adding -Established flag with appropriate list command, this will provide you with a list of packages installed on Debian 12 from the appropriate package manager:

If you want to count the number of packages installed on Debian, you can use appropriate list Order as follows:

appropriate list –Established , Welcome -l

To get a list of packages associated with a single package, you can pipe appropriate list established After command with grep command package name,

appropriate list –Established , grape package name

In addition to using appropriate list command on Debian 12, you can also get detailed information about a package using apt show order followed package name,

How to list installed packages on Debian 12 using dpkg package manager

If you want to get detailed information about packages installed on Debian 12, you can use dpkg-query order followed -l flag. This will display you the list of installed packages along with their version and architecture.

Information provided about packages installed on Debian 12 using dpkg-query The order is quite long. If you want to skip it, just press Why button.

To get information about a specific package installed on Debian 12, you can pip dpkg-query order with grep command after this package name,

dpkg-query -l , grape Welcome

If you don't want to see any additional options like version and architecture, you can execute this dpkg-query order with w flag:

If you want to save the installed packages list on Debian 12, you can execute the following command:

dpkg-query -F '${binary:package}\n' w , debian_package_list.txt

The above command will save the list of packages installed on Debian 12 to a text file debian_package_list:

You can retrieve information from a file using cat order After the file name on Debian 12:

Cat debian_package_list.txt

If you want to install the package on your other Linux server, simply copy the file to the server, then open the terminal and use the following commands to install the package:

sudo xargs -A debian_packages_list.txt apt to install

To count the number of installed packages list on Debian 12, you can use the following dpkg-query Permission:

dpkg-query -F '${binary:package}\n' w , Welcome -l

How to list installed packages on Debian 12 using Synaptic Package Manager

Synaptic Package Manager is a GUI tool that allows you to install, remove, and manage packages on your Debian system. It is preinstalled on Debian systems, and you can open it on your desktop to get a list of installed packages. This can be done using the following steps:

step 1: first open Synaptic Package Manager From the application menu:

step 2: then navigate Situation Option:

step 3: Go Established Section:

There you will be able to see the packages installed on your Debian system, along with their installed versions and descriptions:

Bonus Method: How to List Installed Packages on Debian 12 Using Snap Package Manager

In addition to using apt and dpkg package managers for installation of packages on Debian 12, some users also use snap package manager On their system. Snap is an external package manager that can be installed from the appropriate repository. This simplifies the installation of packages as you only need to type the name of the package you want to install. It will handle the dependencies itself and install them on your system automatically.

If you have used snap package manager On your Debian system, you can use the following command to list the packages installed on Debian 12 from Snap:

conclusion

Listing installed packages on Debian 12 is a useful function as it lets you decide whether to keep packages or remove them from the system. You can list packages installed on Debian using this appropriate list Or dpkg-query Order. These two commands can be used in different ways to retrieve information about all installed packages on a Debian system. Besides using commands, you can also use GUI tools Synaptic Package Manager To view the list of packages installed on Debian 12. A detailed instruction for each method is provided in the above sections of this guide. Check out those methods to effectively manage packages on your Debian system.

How do you vote?

0 People voted this article. 0 Upvotes - 0 Downvotes.
svg

What do you think?

Show comments / Leave a comment

Leave a reply

You may like
Loading
svg