

||/ Name Version Architecture Description |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend Erase the existing information of packages using dpkg commandĭesired=Unknown/Install/Remove/Purge/Hold dpkg command to forget uninstalled and unavailable packages

Update package information with dpkg command Search for a filename from installed packages with dpkg command dpkg command to list all files of installed package Search partially installed packages with dpkg command dpkg command to reconfigure an unpacked package Unpack the package, but don’t configure with dpkg command dpkg command to extract the files of a package dpkg command to get the information of deb package List contents of deb package with dpkg command dpkg command to view the list of installed packages Remove an installed package along with configuration files Remove an installed package with dpkg command Check if a package is installed or not using dpkg command How can you uninstall a package by using the dpkg tool? The following command is used to uninstall a package, but it is not recommended. Ii p7zip-full 9.20.1~dfsg.1-4 7z and 7za file archivers with high compression ratio Ii libzip2 0.10-1ubuntu1 library for reading, creating, and modifying zip archives (runtime) Ii gzip 1.4-1ubuntu2 GNU compression utilities ii bzip2 1.0.6-1 high-quality block-sorting file compressor - utilities

sudo dpkg -l | grep zipĪfter running the above command I get the output shown below. The grep utility is used to print lines matching a pattern. The following combination is used to send the output of the dpkg -l command to the grep command. If you want to get information if a specific package installed on your system or not you can use piping which is used to combine command together in order to create more complex and useful commands. I have so many packages installed on my Ubuntu 12.04 LTS machine that the amount of output generated by the dpkg -l command is so big it will take one hour to read. Dpkg: error: requested operation requires superuser privilege
