Examining if a precise deal is set up working with dpkg:
To look at if a unique package deal is mounted on Debian dependent Linux distributions, you can use the dpkg command followed by the -s (status) flag and the package deal identify. The command beneath displays an case in point of dpkg, used to verify the status of the offer Steam.
As you can see, the command returns data on the offer, which includes the next:
Bundle name: Bundle identify.
Offer position: Right here, you can see the package deal status on your method.
Precedence: There are 5 achievable priority concentrations for deals: The precedence ‘Required’ belongs to packages that are important for the program eliminating deals marked as ‘Required’ may well lead to a method failure. The next doable precedence method for a is the ‘Important’ priority for deals that are not important for the procedure but the user, for case in point, a textual content editor like nano or net-equipment. The 3rd priority is ‘Standard’, which includes deals that are described to be set up by default. The fourth priority stage is the ‘Optional’, which involves optional deals in Debian/Ubuntu installations. Eventually, the fifth priority is ‘Extra’, which is deprecated and is replaced by ‘Optional’. The standing ‘Extra’ was used for specialised packages.
Mounted dimensions: You can see the approximated demanded disk room in bytes to put in the package deal.
Maintainer: This industry reveals the data on the package’s developer.
Architecture: Below, you can see the offer architecture.
Edition: Package deal version.
Depends: Package dependencies.
Description: Package deal description.
Homepage: Package deal/Developer web-site.
The screenshot underneath exhibits the output when you test a package deal that isn’t set up.
You can also use the dpkg command followed by the -l flag to check a distinct package position, as proven in the case in point under.
Examining if a distinct bundle is installed making use of dpkg-query:
The dpkg-query command can be utilised to display if a specific package is put in in your technique. To do it, run dpkg-query followed by the -l flag and the title of the package deal you want information and facts about. The example underneath reveals how to test if the Steam bundle is mounted.
You can use the same command to list all put in deals by omitting the bundle name, as revealed in the case in point below.
Look at if a offer is installed making use of apt-cache:
The apt-cache command can also demonstrate info on deals, put in versions, and additional. To get this output, you have to have to insert the policy alternative followed by the package identify, as demonstrated in the instance under.
Get a checklist of all put in deals applying apt:
If you want to print a listing of all put in offers on your program as an alternative of checking if a certain offer was set up, you can achieve it working with the apt command as demonstrated in the example beneath.
Get a checklist of all set up packages studying logs:
Yet another approach broadly applied to get a checklist of all mounted deals is looking through apt or dpkg logs.
To examine the apt log, operate the subsequent command.
To read through the dpkg log to get info on put in offers, run the command down below.
grep ” install “ /var/log/dpkg.log
You also can read through compressed dpkg logs applying the zgrep command rather of grep, as shown in the case in point down below.
zgrep ” set up “ /var/log/dpkg.log.11.gz
As you can see, compressed logs will give you partial info, but you can put into practice a wildcard (*) to read all compressed logs at when, as proven in the adhering to example.
zgrep ” put in “ /var/log/dpkg.log.*.gz
How to test upgraded and removed packages:
If you want to display screen information on upgraded deals only, you can attain it working with the command underneath.
As discussed earlier, with mounted offers, you also can check compressed logs for upgraded offers using the wildcard, as demonstrated in the subsequent illustration.
zgrep “improve “ /var/log/dpkg.log.*.gz
If you want to list removed packages, the approach is equivalent just switch “update” with “take away,” as demonstrated underneath.
grep “remove “ /var/log/dpkg.log
As you can see, Debian-primarily based Linux distributions present numerous means to verify a unique bundle standing or record all set up, upgraded and taken out offers. Instructions stated in this tutorial are quick to use and understanding them is necessary for any Debian-primarily based distribution person. As you observed, these instructions can also offer details on computer software variations, desired disk house, and additional. You can get further suggestions to record packages information and facts with the tutorial See dpkg and apt heritage.
I hope this tutorial detailing how to examine if a bundle is installed on Debian or Ubuntu was beneficial. Continue to keep next Linux Hint for additional Linux guidelines and tutorials.