In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to list the installed software packages on Ubuntu and Debian, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.
List the packages installed on Ubuntu and Debian
If you often use the apt command, you may think that there is a command that lists installed packages like apt. It's not all wrong.
The apt-get command does not have a simple option like listing installed packages, but apt has one such command:
Apt list-installed
This will show all packages installed using the apt command. Packages that are installed due to dependencies will also be included. This means that it will contain not only the programs you have installed, but also a large number of library files and indirectly installed packages.
Use the atp command to list and display installed software packages
Because there are too many installed packages listed, it is a good idea to filter specific packages with grep.
Apt list-- installed | grep program_name
The above command can also retrieve the software installed using the .deb package file. Isn't that cool?
If you have read the article comparing apt with apt-get, you probably already know that both apt and apt-get commands are based on dpkg. This means that all installed packages for the Debian system can be listed with the dpkg command.
Dpkg-query-l
You can use the grep command to retrieve the specified package.
Use the dpkg command to list and display installed software packages
Now you can list the applications installed by Debian's package manager. What about Snap and Flatpak? How do I list them? Because they cannot be accessed by apt and dpkg.
To show all installed Snap packages in the system, you can use this command:
Snap list
Snap can use a green check mark to indicate which app is from a certified publisher.
List the installed Snap packages
To display all installed Flatpak packages on the system, you can use this command:
Flatpak list
Let me make a summary:
Use the apt command to display the installed packages:
Apt list-installed
Use the dpkg command to display the installed packages:
Dpkg-query-l
List the Snap installed packages in the system:
Snap list
List the Flatpak installed packages in the system:
Flatpak list displays recently installed software packages
Now you have seen the installed packages listed in alphabetical order. How do I display recently installed packages?
Fortunately, the Linux system keeps a log of all events that occur. You can refer to the log of the most recently installed package.
There are two ways to do this. Use the log of the dpkg command or the log of the apt command.
You only need to use the grep command to filter the installed package logs.
Grep "install" / var/log/dpkg.log
This displays all software installation packages, including the packages that you relied on during the most recent installation.
2019-02-12 12:41:42 install ubuntu-make:all 16.11.1ubuntu12019-02-13 21:03:02 install xdg-desktop-portal:amd64 0.11-12019-02-13 21:03:02 install libostree-1-1:amd64 2018.8-0ubuntu0.12019-02-13 21:03:02 install flatpak:amd64 1.0.6-0ubuntu0.12019-02-13 21:03:02 install xdg-desktop-portal-gtk:amd64 0.11-12019-02-14 11:49 : 10 install qml-module-qtquick-window2:amd64 5.9.5-0ubuntu1.12019-02-14 11:49:10 install qml-module-qtquick2:amd64 5.9.5-0ubuntu1.12019-02-14 11:49:10 install qml-module-qtgraphicaleffects:amd64 5.9.5-0ubuntu1
You can also view the apt history command log. This will only show programs that are installed with the apt command. However, depending on the installation of the package will not be displayed, the detailed log can be seen in the log. Sometimes you just want to see it, right?
Grep "install" / var/log/apt/history.log
The specific display is as follows:
Commandline: apt install pintaCommandline: apt install pintaCommandline: apt install tmuxCommandline: apt install terminatorCommandline: apt install moreutilsCommandline: apt install ubuntu-makeCommandline: apt install flatpakCommandline: apt install cool-retro-termCommandline: apt install ubuntu-software
Show recently installed software packages
Apt's history log is very useful. Because it shows when the apt command was executed, which user executed the command, and the name of the package installed.
Tip: display the installed package name in the Software Center
If you feel that the interaction between the terminal and the command line is not friendly, there is another way to check the program name of the system.
You can open the Software Center and click the installed tab. You can see the names of the packages that have been installed on the system.
Display installed packages in the Software Center
This doesn't show libraries and other command-line stuff, and you probably don't want to see them either, because most of your interactions are on GUI. In addition, you can also use the Synaptic package manager.
Thank you for reading this article carefully. I hope the article "how to list the software packages installed on Ubuntu and Debian" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.