How to 'purge' a package?

Started by jjanzz, August 26, 2018, 09:53:16 AM

Previous topic - Next topic
Hello,

What is the correct way to 'purge' a package? I've tinkered with the Suricata config files a bit too much and want to reinstall the package, giving a clean slate. However, using the webui just uninstalls it, keeping the config files. As far as I could find, pkg-delete doesn't have an option for deleting a package including the configuration files that shipped with it.

Are you perhaps able to shine a light on this?

Thank you

The answer is that the configuration is not shipped with the package and because of this it is not able to know which configuration files are around. OPNsense uses templates which are rendered to the file system and they currently cannot be revoked. If you want to remove the files, you have to "rm" them manually.

Quote from: fabian on August 26, 2018, 12:33:32 PM
If you want to remove the files, you have to "rm" them manually.

Thank you! Is there any way to restore the default files after I have removed them (except for a reinstallation)?

templates: regenerate them (will be done via the web interface automatically) or the answer is no.

Thank you very much for your answer. I ended up reinstalling OPNsense, spend quite some work on it, but everything is back up and running. I know that there is a configuration export & import option, but it feels better to start with a clean slate :)