[Ilugc] One Day One GNU/Linux Command (DPKG)

Bharathi Subramanian sbharathi at MidasComm.Com
Thu Dec 4 09:27:44 IST 2008

One Day One GNU/Linux Command 

dpkg -- A medium-level package manager for Debian.


dpkg is a medium-level tool to install, build, remove and manage
Debian packages. The primary and more user-friendly front-end for 
dpkg is dselect(8).


$ dpkg -l vi* -- List packages matching given pattern.

$ dpkg -I vim.deb -- Show vim package information.

$ dpkg -c vim.deb -- List the vim package contents.

$ dpkg -S /usr/bin/gcc -- Show which pkg is installed gcc.

$ dpkg --print-avail vim emacs -- Display details about package, as 
                                  found in /var/lib/dpkg/available

# dpkg -i vim.deb -- Install the vim package.

# dpkg -r elvis -- Remove the package.

# dpkg-reconfigure xfree86 -- Reconfigure the X Package.

# aptitude -- Console interface to APT package management.

# synaptic -- GUI to APT package management.

Read: man dpkg, aptitude, synaptic

HTH :)
Bharathi S

More information about the ilugc mailing list