Home > linux, ubuntu > How to check if a package is installed in Ubuntu

How to check if a package is installed in Ubuntu

If you want to know if a package is installed in Ubuntu you can use dpkg command. There are several ways to achieve this.

For instance, if you want to know if sudo package is installed:


$ dpkg -s sudo

Package: sudo
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 804
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 1.7.4p6-1ubuntu2
Replaces: sudo-ldap
Depends: libc6 (>= 2.11), libpam0g (>= 0.99.7.1), libpam-modules
Conflicts: sudo-ldap
Conffiles:
 /etc/pam.d/sudo 402488da83015090763d681fffae6340
 /etc/sudoers.d/README 0b76d590c3d5d1966bdfa7ee808893c4
 /etc/sudoers bb3dd9531a53d7dc6fe26d2e019d7456
 /etc/init.d/sudo 8dd3c1c4fb7582466676fd00d31cdc9b
Description: Provide limited super user privileges to specific users
 Sudo is a program designed to allow a sysadmin to give limited root
 privileges to users and log root activity. The basic philosophy is to give
 as few privileges as possible but still allow people to get their work done.
 .
 This version is built with minimal shared library dependencies, use the
 sudo-ldap package instead if you need LDAP support for sudoers.
Original-Maintainer: Bdale Garbee <bdale@gag.com>

If you don’t know the name of the package, you can try this:


$ dpkg --get-selections | grep sudo
gnome-sudoku                 install
sudo                install

Advertisements
Categories: linux, ubuntu Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: