Debian Cleanup Tip #1: Get rid of useless configuration files

Nov 02, 2019 · I have a couple of Debian and Ubuntu Linux systems that use the APT package management system, including test servers, production servers, and even Raspberry Pi systems. It seems like every time I have to use an apt-get or other apt command, I always have to search for the command I need. $ dpkg --list | grep zulu. Sample response. ii zulu-6 6.5.0.2 Azul Systems Zulu. Run the uninstall command on your Zulu package. To uninstall a specific version of Zulu, list the corresponding package name. For RHEL, SLES, or Oracle Linux $ sudo rpm -e For Ubuntu or Debian $ sudo dpkg --remove Sep 29, 2013 · [Y/n/?] > dpkg: warning: ignoring request to remove iproute which isn't installed > # aptitude purge ~c > The following packages will be REMOVED: > iproute{p} > 0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded. > Need to get 0 B of archives. This is the case not only for Ubuntu with Gnome, but other Ubuntu flavors as well, including Kubuntu, Ubuntu MATE, and so on. As a side note, if you force a shutdown / reboot while installing updates, your computer may fail to boot into Ubuntu / Debian, and apt will probably get broken, showing the E: Could not get lock /var/lib/dpkg/lock or E: dpkg was interrupted, you must manually run 'sudo Feb 13, 2019 · sudo dpkg-query -f '${binary:Package} ' -W | wc -l. The output will show the number of installed packages: 466 Conclusion # In this tutorial, you learned how to list and filter installed packages on your Debian system. Feel free to leave a comment if you have any questions.

In addition to installing packages, dpkg also helps to remove packages and know the status of packages. While checking the status of packages using dpkg , you may come across the state rc . What does rc mean?

Jul 25, 2019 · When removing a package, which of the following dpkg options will completely remove the files including configuration files? A . –clean B . –delete C . –purge D . Cremove. View Answer. Answer: C Jan 11, 2019 · As long as there’s nothing that seems not to belong there, you can force-remove the broken packages. sudo dpkg --remove --force-remove --reinstreq When dpkg is done, try to clean up with Apt. In that case, dpkg won't remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge. Removing of a package consists of the following steps: 1. Run prerm script. 2. Remove the installed files. 3. Run postrm script--update-avail, --merge-avail Packages-file NOTE: This program does not install, remove, purge any package. It ONLY sets the status of the package. any actual removal or purging is done the next time dselect, apt-get, aptitude, etc are run. SEE ALSO dpkg(1), dpkg-hold(1), dpkg-unhold(1), dpkg-purge(1) AUTHOR dpkg-remove was written Craig Sanders . dpkg-remove is Free

Remove Installed Package Using Dpkg. Once you no longer need an installed package, you can remove it using the dpkg command. For removing an installed package, you will need to mention the installed package name instead of mentioning the .deb package name that was used to install the package.

dpkg is a tool used to install packages into a Debian, Ubuntu, Mint, Kali or deb based distribution. Generally package managers works without problem. But in so