List the packages on Ubuntu and Debian installed
If you often use apt command , you may feel like there will be a command apt
and they can list the installed packages. Not all wrong.
apt-get command is no similar list simplest option installed packages, but apt
there is such a command:
apt list --installed
This will show the use of apt
all the packages installed command. Because the package will also include reliance is installed. That will not only contain you have installed programs, and will include a large number of libraries and packages indirect installed.
By atp command lists display installed packages
Because too many packages have been installed out of the list, with a grep
filter specific package is a better way.
apt list --installed | grep program_name
As commands can also be retrieved using a software package .deb file to install. Is not it cool?
If you read the apt comparison with apt-get article, you probably already know apt
and apt-get
commands are based on dpkg . That used dpkg
to list all the packages have been installed Debian system commands.
dpkg-query -l
You can use the grep
command to retrieve the specified package.
Use dpkg command to list installed packages display
Now you can get a list of applications Debian package manager to install the. Snap and Flatpak that the two applications do? How to list them? Because they can not be apt
and dpkg
accessible.
The display system has been installed in all of the Snap packages , can this command:
snap list
Which application publisher from a certified Snap can be marked with a green check mark.
Snap list of installed packages
The display system has been installed in all of Flatpak package , you can use this command:
flatpak list
Let me a summary:
With apt
command displays installed packages:
apt list –installed
With dpkg
command displays installed packages:
dpkg-query -l
Snap lists the system has been installed package:
snap list
Flatpak list system has been installed package:
flatpak list
Display package recently installed
Now that you've seen already installed the packages listed in alphabetical order. How to display the package has recently been installed?
Fortunately, Linux system keeps a log of all events. You can refer to the log recently installed packages.
There are two ways to do it. A dpkg
log command or apt
log command.
You only need to use the grep
command log filtering software packages already installed.
grep " install " /var/log/dpkg.log
This will show all of the installed software package, which includes the recent installation process depends package.
2019-02-12 12:41:42 install ubuntu-make:all 16.11.1ubuntu1
2019-02-13 21:03:02 install xdg-desktop-portal:amd64 0.11-1
2019-02-13 21:03:02 install libostree-1-1:amd64 2018.8-0ubuntu0.1
2019-02-13 21:03:02 install flatpak:amd64 1.0.6-0ubuntu0.1
2019-02-13 21:03:02 install xdg-desktop-portal-gtk:amd64 0.11-1
2019-02-14 11:49:10 install qml-module-qtquick-window2:amd64 5.9.5-0ubuntu1.1
2019-02-14 11:49:10 install qml-module-qtquick2:amd64 5.9.5-0ubuntu1.1
2019-02-14 11:49:10 install qml-module-qtgraphicaleffects:amd64 5.9.5-0ubuntu1
You can also view apt
the history of the command log. This will be displayed only with the apt
program commands installed. But will not be displayed dependent on installed packages, detailed logs can be seen in the log. Sometimes you just want to see, right?
grep " install " /var/log/apt/history.log
DETAILED shown below:
Commandline: apt install pinta
Commandline: apt install pinta
Commandline: apt install tmux
Commandline: apt install terminator
Commandline: apt install moreutils
Commandline: apt install ubuntu-make
Commandline: apt install flatpak
Commandline: apt install cool-retro-term
Commandline: apt install ubuntu-software
Display package recently installed
apt
The history log is useful. Because he shows when executing the apt
command, the command is executed and which user names package installed.
Tip: Display the package name is already installed in the software center
If you feel terminals and unfriendly command-line interaction, there is a way you can view the system program name.
Can open the Software Center, then click on the tag is installed. You can see the name of the package already installed on your system
Display installed packages in the Software Center
This does not display libraries and other command-line stuff, chances are you do not want to see them, because you are in a large number of interactive GUI. In addition, you can also use Synaptic Package Manager.
Conclusion
I hope this simple tutorial can help you see the Ubuntu and Debian-based distro installed packages.
If you have any questions on this article or suggestions, please leave a message below.