You can install, search, delete, show installed packages etc. in your Linux system. We will discuss all the operations here briefly:
To display all installed packages:
# $ dpkg --get-selections seahorse-plugins install sed install sensible-utils install sgml-base install sgml-data install shared-mime-info install shotwell install simple-scan install software-center install software-properties-gtk install sound-juicer install ssl-cert install sudo install synaptic install
I just displayed some of the packages installed on my computer.
To display specific packages, so lets say in my case we will search for installed perl packages:
l# dpkg --get-selections | grep perl libapache2-mod-perl2 install libapache2-reload-perl install libbsd-resource-perl install libcairo-perl install libdevel-symdump-perl install libfile-copy-recursive-perl install libfont-afm-perl install libfont-freetype-perl install libglib-perl install libgnome2-canvas-perl install libgnome2-perl install libgnome2-vfs-perl install libgtk2-perl install libhtml-format-perl install libhtml-parser-perl install
So you can use grep for a specific installed package.
To search any package to install:
# apt-cache search package name or if you can find specific package by using grep: # apt-cache search package-type |grep -i package So, for example i wish to find LWP package for perl, i will do: # apt-cache search perl |grep -i LWP libcrypt-ssleay-perl - Support for https protocol in LWP libio-all-lwp-perl - Perl module to use HTTP and FTP URLs with IO::All liblwp-authen-negotiate-perl - Perl module for GSSAPI based Authentication Plugin for LWP liblwp-authen-wsse-perl - Library for enabling X-WSSE authentication in LWP liblwp-online-perl - module to check if there is Internet access liblwp-protocol-http-socketunix-perl - Perl module to speak http through unix sockets liblwp-protocol-socks-perl - SOCKS proxy support for LWP liblwp-useragent-determined-perl - LWP useragent that retries errors liblwpx-paranoidagent-perl - a "paranoid" subclass of LWP::UserAgent libtest-mock-lwp-perl - Easy mocking of LWP packages
To install any package do:
# apt-get install package_name So, to install libcrypt-ssleay-perl i would do: # apt-get install libcrypt-ssleay-perl Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libcrypt-ssleay-perl 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 56.7 kB of archives. After this operation, 205 kB of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ squeeze/main libcrypt-ssleay-perl i386 0.57-2 [56.7 kB] Fetched 56.7 kB in 0s (64.8 kB/s) Unpacking libcrypt-ssleay-perl (from .../libcrypt-ssleay-perl_0.57-2_i386.deb) ... Processing triggers for man-db ... Setting up libcrypt-ssleay-perl (0.57-2) ...
Keep checking for more updates