dpkg tutorial – Package Manager for Ubuntu / Debian

dpkg or the debian package manager is package manager for debian and other debian based Linux distributions like Ubuntu. dpkg can be used for a variety of purposes

  1. Installation of packages
  2. Removal of packages
  3. Knowing the current state of a package
  4. Cloning a machine

Let’s see how each of these can be done using dpkg.

  1. Package Installation
    1. How to find the installed packages in your Ubuntu machine?
    2. How to see the list of available packages in Ubuntu?
  2. Package Removal
    1. dpkg: purge versus remove
    2. Remove all packages marked as rc by dpkg
    3. Purge packages using dpkg
    4. Remove a package marked as rc by dpkg
    5. Remove packages using dpkg
  3. Package listing (dpkg –list)
    1. What does pn correspond to in dpkg (–list)?
    2. What does ii correspond to in dpkg (–list)?
    3. What does rc correspond to in dpkg (–list)?
  4. Package Current State
    1. How to see the Current State of package (Ubuntu)?
    2. How to interpret the status of dpkg (–list)?
  5. Cloning a machine
    1. dpkg –set-selections: Clone your Ubuntu Machine (package state)
    2. dpkg –get-selections: Get the Current State of Your Ubuntu/Debian machine

Please leave your valuable comments.

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