Wednesday, 14 May 2025

How to Remove a deb package


Get the package complete name:
dpkg --list | grep partial_package_name*

Remove the package:
sudo apt-get remove package_name


Remove all the dependencies:
sudo apt-get purge package_name


Remove the unneeded packages that were once installed as a dependency:
sudo apt-get autoremove

Remove the retrieved packages from the local cache:
sudo apt-get autoclean

Check that it was completely removed:
dpkg --list | grep partial_package_name*


Finally, do a clean so you check everything is correctly removed

sudo apt-get clean

No comments:

Post a Comment