This is a small how to on listing installed softwares in Linux Ubuntu OS. Some times we require to list softwares which are already installed so that we will not redo the same work by installing it once again.
Example1: To list installed softwares execute below command
Output(clipped):
xul-ext-unity install
xul-ext-webaccounts install
xul-ext-websites-integration install
xz-utils install
yelp install
yelp-xsl install
zeitgeist install
zeitgeist-core install
zeitgeist-datahub install
zenity install
zenity-common install
zip install
zlib1g:amd64 install
zlib1g:i386 install
Example2: To count all installed softwares use below command which is modified version of above one.
dpkg --get-selections | wc -l
Example3: To know the version and other details about installed package use below command
aptitude show <package-name>
Example:
Package: zip
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 3.0-8
Priority: optional
Section: utils
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 603 k
Depends: libbz2-1.0, libc6 (>= 2.14)
Recommends: unzip
Conflicts: zip
Provides: zip
Provided by: zip
Description: Archiver for .zip files
This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the command line options
are not identical. In other words, the end result is the same, but the methods differ. 🙂
This version supports encryption.
Homepage: http://www.info-zip.org/Zip.html
Hope this helps some one who is in need to get details on the package installed in Ubuntu machine.
Latest posts by Surendra Anne (see all)
- Docker: How to copy files to/from docker container - June 30, 2020
- Anisble: ERROR! unexpected parameter type in action:
Fix - June 29, 2020 - FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018