How to Install and Uninstall dpkg-awk Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 19,2024

1. Install "dpkg-awk" package

Please follow the guidelines below to install dpkg-awk on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install dpkg-awk

2. Uninstall "dpkg-awk" package

This tutorial shows how to uninstall dpkg-awk on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove dpkg-awk $ sudo apt autoclean && sudo apt autoremove

3. Information about the dpkg-awk package on Ubuntu 21.10 (Impish Indri)

Package: dpkg-awk
Architecture: all
Version: 1.2+nmu2
Multi-Arch: foreign
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Jeroen Schot
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 28
Suggests: dctrl-tools
Filename: pool/universe/d/dpkg-awk/dpkg-awk_1.2+nmu2_all.deb
Size: 8696
MD5sum: 28e8de6a72ab83426092ccf95c210725
SHA1: f5b327227879477339e117ce6dcab7f36485daf0
SHA256: fe65f6108add11e66a8beddf951c8b28c65dc16372f60c5febf63f744685d1c5
SHA512: 53ed4f0f9acfcc57aaec74dd2ef632618fa613a1aaed096b0b4469196f29e271cd4542add5e32d8f8ec724d6eae2303dbbf367bcd24524d2d79d7eda82a4b246
Description-en: Gawk script to parse /var/lib/dpkg/{status,available} and Packages
This script can parse the dpkg database files. It can do regular
expressions on the fields, and only get what you want. It can also be
made to output certain fields. As an added bonus, there is an option
to sort the output.
.
'dpkg-awk "Status: .* installed$" -- Package Version Status' will
output all installed packages, with only the listed fields.
'dpkg-awk -f=/var/lib/dpkg/available "Package:^[aA].*" -- Package Version'
will output all available packages that start with the letter 'A.'
Description-md5: b4a65e4a0692c63b001734a66a369c21