How to Install and Uninstall dpkg-awk Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 19,2024

1. Install "dpkg-awk" package

Please follow the guidelines below to install dpkg-awk on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install dpkg-awk

2. Uninstall "dpkg-awk" package

Please follow the step by step instructions below to uninstall dpkg-awk on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the dpkg-awk package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: dpkg-awk
Priority: optional
Section: universe/devel
Installed-Size: 56
Maintainer: Ubuntu Developers
Original-Maintainer: Jeroen Schot
Architecture: all
Version: 1.2
Depends: gawk
Suggests: dctrl-tools
Filename: pool/universe/d/dpkg-awk/dpkg-awk_1.2_all.deb
Size: 8940
MD5sum: a30d9fe2d6163081f842c68578db10ee
SHA1: f4057d1d9f3d38a86f52eed525feed98ce9b8bc4
SHA256: 8eba7d31704db0abc42de1572e0516d0e413e2b29e45831c5e55e9d32d982ea6
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
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu