Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
How to 'purge' a package?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to 'purge' a package? (Read 6077 times)
jjanzz
Newbie
Posts: 20
Karma: 3
How to 'purge' a package?
«
on:
August 26, 2018, 09:53:16 am »
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
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: How to 'purge' a package?
«
Reply #1 on:
August 26, 2018, 12:33:32 pm »
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.
Logged
jjanzz
Newbie
Posts: 20
Karma: 3
Re: How to 'purge' a package?
«
Reply #2 on:
August 26, 2018, 12:59:58 pm »
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)?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: How to 'purge' a package?
«
Reply #3 on:
August 26, 2018, 02:31:38 pm »
templates: regenerate them (will be done via the web interface automatically) or the answer is no.
Logged
jjanzz
Newbie
Posts: 20
Karma: 3
Re: How to 'purge' a package?
«
Reply #4 on:
August 28, 2018, 09:49:46 am »
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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
How to 'purge' a package?