Linux

You must specify packages by their own names error in dpkg when trying to remove an installed deb package

I tried to remove an installed deb package using dpkg -P the_deb_name but received the error “you must specify packages by their own names, not by quoting the names of the files they come in

Follow the below steps to correctly uninstall an application (deb package) that you installed using dpkg or eddy:

  1. get the correct name of the package: dpkg –get-selections | grep part_of_the_name

  2. Remove the application: sudo dpkg -P application_name_as_per_above_output (-P removes the package and config files)

Below is a video showing the steps:

 

Leave a Reply

Your email address will not be published.