Cleanup package mess caused by restoring config
-
When I reinstalled pfsense (2.2) I restored my config from a backup file that had been created on a previous pfsense release. The restore feature tried to install some packages that are no longer supported and are leaving traces everywhere.
For example
In the services menu I see an entry for "Zabbix2 Agent", this should not be there as the package is not installed. If I click on this entry I get "No valid package defined."
In the Status > Services I see "ntop" and "zabbix_agentd " that are both "stopped" and cannot be started (of course they're not installed).
In the Status menu I see "Vnstat2", this should not be there as the package is not installed. If I click on this entery I get "No valid package defined."
How do I cleanup the mess caused by the restore?
-
I found this Reddit thread where the OP has the same issue:
https://www.reddit.com/r/PFSENSE/comments/4hnmw5/remove_orphaned_package_listing_after_upgrade_to/
Someone recommended to play with config.xml… Is there a better/more "enterprise" way of solving this mess?
-
Backup the config, check "do not backup package information", then restore that config. It will remove all package info, settings, etc.
-
Your suggestion actually worked quite well, writing this down for next time I clutter pfsense!!
Thanks!