I want to uninstall openoffice package and want to do this using single command or regular expression i.e
dpkg -r openoffice-org*
but dpkg doesnot accept wild cards
how can i uninstall all the packages using wildcard
You can use
to purge the packages.
Running the wildcard will remove following too:
Using above is the safe way.
Actually dpkg does not support wildcards So if you need that feature you need this
this file contains package and status you need to parse it and then feed to dpkg