Linux How-To

The best way to Record Put in Packages on Ubuntu and Debian [Quick Tip]

SEOClerks

So that you put in Ubuntu and began utilizing it extensively. Someplace down the road, you’re certain to lose the observe of the software program that you just had put in over the time.

That’s completely regular. Nobody expects you to recollect all of the packages put in in your system. However the query arises, know what packages have been put in? The best way to see the put in packages?

Record put in packages in Ubuntu and Debian

List installed PackagesList installed Packages

In case you use apt command extensively, you’ll in all probability count on a command like apt listing put in packages. You aren’t fully fallacious right here.

Whereas apt-get command doesn’t have an easy choice like apt-get listing put in packages, apt has a command for this.

apt listing –installed

It will listing all of the packages which have been put in utilizing apt. It should additionally listing the packages that had been put in as a dependency. Which implies that not solely you’ll have the purposes you put in, you’ll even have an enormous listing of libraries and different packages that you just didn’t set up straight.

List installed packages in Ubuntu with apt commandList installed packages in Ubuntu with apt commandItemizing put in packages with apt command

Because the listing of put in packages is a large one, it might be a greater thought to make use of grep and filter the output for a sure bundle.

apt listing –installed | grep program_name

Observe that the above methodology additionally lists the purposes put in with .deb recordsdata. That’s cool, isn’t it?

When you’ve got learn my apt vs apt-get comparability article, you in all probability already know that each apt and apt-get principally use dpkg. This implies you should utilize dpkg command to listing all of the put in packages in Debian.

dpkg-query -l

You possibly can filter the output with grep once more to seek for a selected bundle.

Listing installed packages with dpkg commandListing installed packages with dpkg commandItemizing put in packages with dpkg

Up to now, you’ve gotten handled purposes put in with Debian’s bundle supervisor. What about Snap and Flatpak purposes? The best way to listing them as a result of they aren’t accessible with apt and dpkg?

To point out all of the Snap packages put in in your system, use this command:

snap listing

Snap listing additionally signifies which purposes are from a verified writer with a inexperienced tick.

List installed packages with snapList installed packages with snapItemizing put in Snap packages

To listing all of the Flatpak packages put in in your system, use this:

flatpak listing

Let me summarize it for you.

To listing packages utilizing apt command:

apt listing –put in

To listing packages utilizing dpkg command:

dpkg-query -l

To listing Snap packages put in in your system:

snap listing

To listing Flatpak packages put in in your system:

flatpak listing

Record the not too long ago put in packages

Up to now you noticed the listing of put in packages in alphabetical order. What if you wish to see the packages which have been put in not too long ago?

Fortunately, a Linux system retains a log of every little thing that occurs in your system. You possibly can confer with the logs to see the not too long ago put in packages.

There are a few methods to do that. You possibly can both use the dpkg command’s log or the apt command’s log.

You’ll have to make use of grep command to filter the consequence to listing the put in packages solely.

grep ” set up ” /var/log/dpkg.log

It will listing all of the packages together with the dependencies that had been put in not too long ago in your system together with the time of set up.

2019-02-12 12:41:42 set up ubuntu-make:all 16.11.1ubuntu1
2019-02-13 21:03:02 set up xdg-desktop-portal:amd64 zero.11-1
2019-02-13 21:03:02 set up libostree-1-1:amd64 2018.Eight-0ubuntu0.1
2019-02-13 21:03:02 set up flatpak:amd64 1.zero.6-0ubuntu0.1
2019-02-13 21:03:02 set up xdg-desktop-portal-gtk:amd64 zero.11-1
2019-02-14 11:49:10 set up qml-module-qtquick-window2:amd64 5.9.5-0ubuntu1.1
2019-02-14 11:49:10 set up qml-module-qtquick2:amd64 5.9.5-0ubuntu1.1
2019-02-14 11:49:10 set up qml-module-qtgraphicaleffects:amd64 5.9.5-0ubuntu1

You too can use the historical past of apt command. It will present solely the packages that you just put in utilizing apt command. It received’t present the dependencies put in with it, although the main points are current within the logs. Generally, you simply wish to see that, proper?

grep ” set up ” /var/log/apt/historical past.log

The output ought to be one thing like this:

Commandline: apt set up pinta
Commandline: apt set up pinta
Commandline: apt set up tmux
Commandline: apt set up terminator
Commandline: apt set up moreutils
Commandline: apt set up ubuntu-make
Commandline: apt set up flatpak
Commandline: apt set up cool-retro-term
Commandline: apt set up ubuntu-software

List recently installed packagesList recently installed packagesItemizing not too long ago put in packages

The historical past log of apt is kind of helpful as a result of it exhibits the time when the apt command was run, the consumer who ran the command and the packages that had been put in by a command.

Bonus Tip: Present put in purposes in Software program Middle

If you’re not comfy with the terminal and the instructions, you continue to has a strategy to see the purposes put in in your system.

You possibly can open the Software program Middle and click on on the Put in tab. You’ll see the listing of purposes which have been put in in your system.

List Installed Software in Ubuntu Software CenterList Installed Software in Ubuntu Software CenterDisplaying put in purposes in Software program Middle

It received’t present the libraries and different command line stuff although however maybe you don’t wish to see that as you’re extra GUI centric. In any other case, you possibly can at all times use the Synaptic Bundle Supervisor.

That’s it

I hope this fast little tutorial helped you to see the listing of put in packages on Ubuntu and Debian primarily based distributions.

When you’ve got questions or ideas to enhance this article, please depart a remark under.

Source link

Related Articles

Leave a Reply

Back to top button