Having said that, how can you explain to which package is mounted or how you can retrieve the list of the put in offers on your process? Do you know how to do that? We are listed here to rescue you. Now we will demonstrate how to list installed offers on Ubuntu. So let us get commenced!
How to list set up packages on Ubuntu using apt command
The apt stands for Innovative Packaging Tool whereas the “apt command” is applied to interact with this package deal administration system. For the initially time, it was embedded in Ubuntu 14.04. This package management utility has the collective attributes of the most on a regular basis utilised commands from apt-cache and apt-get. It can also checklist the mounted packages although the apt-get command lacks this simple possibility.
Making use of the apt utility, if you want to list set up packages on your program, for that, publish out the beneath-offered command in your terminal:
$ sudo apt listing –put in
The execution of the above-provided command will record all the packages that you have mounted with apt. It will also list out the dependencies existing on your procedure. This indicates that the listing will exhibit you the mounted purposes furthermore, you will see the substantial number of libraries and packages that you did not put in right:
The basic “apt record –installed” command also lists details similar to offers, these types of as their model and architecture. If you want to make this listing simpler to browse, you can pipe the output of the apt to the “much less” command employing [“|”] pipe operator. The fewer command will display you the checklist of mounted packages a single webpage at a time:
$ sudo apt listing –installed | less
You have to press “Enter” to transfer to the future site of the listing:
How to list a unique mounted bundle on Ubuntu making use of apt command
The grep command can be used to filter the apt command’s output for verifying if our searched offer exists on the technique or not. This command lookout for strains that have the pattern specified in the input and then it outputs the matched line to the terminal. For occasion, we will incorporate apt and grep commands applying the pipe operator [“|“] to see if “firefox” exists on our system or not:
sudo apt checklist –put in | grep firefox
The output will display you the next information and facts:
How to list installed packages on Ubuntu using dpkg command
The apt utility could not be accessible on systems managing older variations of Ubuntu. Alternatively, these people can employ the “dpkg” command. The dpkg utility is used for managing Debian packages. It gives several selections, like dpkg-query, which can show details about offers in the dpkg databases.
The “-l” alternative is additional in the “dpkg-query” command for listing the put in offers. You can also use the pipe operator [“|”] to pipe the output of the “dpkg-question” command to the “fewer” command. This will listing the mounted offers a person site at a time:
$ sudo dpkg-question -l | less
The execution of the earlier mentioned-provided command will print out a record of mounted deals on your program with their variation, architecture, and a quick description:
How to record a unique mounted offer on Ubuntu working with dpkg command
To lookup for a specific bundle set up on your method, you execute the dpkg command with the grep command. Adding the pipe operator [“|”] will pipe the output of the “dpkg” command to the “grep”. Then the grep command will look for for the specific package in the presented output.
For occasion, we will look for for the “firefox” in the checklist of mounted deals as follows:
$ sudo dpkg-query -l | grep firefox
How to generate a listing of put in offers on Ubuntu working with dpkg command
If you want to produce a record of put in programs, you can also execute this operation with the assist of “dpkg-question” command. To do so, execute the underneath-given command in your Ubuntu terminal. This command will help you save the list of put in deals in the “checklist.txt” file:
$ sudo dpkg-question -f ‘$binary:Bundlen’ -W > record.txt
Now, create out the cat command with the identify of the file that contains the record, which is “list.txt” in our circumstance:
This will show you the next output:
It is very practical to know how to checklist set up deals on your Ubuntu technique in scenarios the place you have to put in the same offers on your procedure, for occasion, when you are reinstalling Ubuntu or replicating the natural environment on any other machine. This article shown how you can checklist the installed packages on your Ubuntu program. Test them out for a far better comprehension and preserve adhering to Linux Trace.