How to uninstall a .deb installed with dpkg?

I installed Unified Remote using dpkg:

dpkg -i urserver.deb

How do I uninstall it so I can reinstall from scratch?

Asked By: Tomblarom

||

I figured it out:

dpkg -r urserver
Answered By: Tomblarom

First of all you should check if this package is correctly installed in your system and being listed by dpkg tool:

dpkg -l '*urserver*'

It should have an option ii in the first column of the output – that means ‘installed ok installed’.

If you’d like to remove the package itself (without the configuration files), you’ll have to run:

dpkg -r urserver

If you’d like to delete (purge) the package completely (with configuration files), you’ll have to run:

dpkg -P urserver

You may check if the package has been removed successfully – simply run again:

dpkg -l urserver

If the package has been removed without configuration files, you’ll see the rc status near the package name, otherwise, if you have purged the package completely, the output will be empty.

Answered By: ihor_dvoretskyi
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.