Uninstall built-in packages

Started by dcol, March 02, 2018, 05:48:08 PM

Previous topic - Next topic
March 02, 2018, 05:48:08 PM Last Edit: March 02, 2018, 06:04:29 PM by dcol
How do I uninstall a built-in package?
I want to remove apinger. I do not use gateway monitoring and it causes errors. I am not using gateway monitoring and apinger still shows up as a service and continually tries to restart flooding the log with errors.

This happens on two of my boxes but not on a third one. I even tried a fresh reinstall with the same results.

I just want to remove the package altogether. How do I do that?

never mind figured it out

# pkg set -v 0 apinger
# pkg remove -f apinger

March 02, 2018, 06:04:14 PM #2 Last Edit: March 02, 2018, 06:07:22 PM by dcol
Ok, not solved. I uninstalled the package, rebooted and it is still there.

Did I miss something?

Doesn't work, because if you do it would uninstall the opnsense package. Well, at least it will always come back.

You can disable all your gateway monitors and apinger will not be started.

Or... what are you trying to do?

I am trying to get apinger off the dashboard and stop filling up the gateway log with restarts.
I have gateway monitoring disabled. Only one gateway, one LAN, one WAN. This is a fresh install 18.1.2_2

So I did an audit and it put back apinger with the following errors

apinger dependency failed to be fixed

>>> There are still missing dependencies.
>>> Try fixing them manually.

How do I do that?

Hmm, does this produce a search result?

# grep monitor_disable /conf/config.xml

You removed apinger, it wants it back...

# pkg upgrade

When ticking all gateways for "Disable Gateway Monitoring" and hitting apply apinger is not started.

Ok fixed the dependencies with # pkg install -f apinger

The errors are now gone, but why does apinger still appear in the dashboard as disabled when my other boxes do not show apinger at all. This is what lead me on this path.

It's not in a new install that I tried just now. If it's enabled it means a manual gateway was added, that also happens when you save the automatic gateways. You can try to delete all gateways. They come back, but won't be in the config so apinger won't see them.

March 02, 2018, 06:37:33 PM #10 Last Edit: March 02, 2018, 06:40:17 PM by dcol
Ok, that did it. I deleted the gateway. It was still there, but apinger is now gone. Must leave some remnants behind when you manually enter the static gateway from the console then apply the restore.

Also, the WAN IP doesn't show up in the console on reboot. The WAN (igb0) field is blank. Have to refresh the console and then it comes back. Just on this box, but it works.

Thanks

Second part sounds like WAN is not up when the boot finishes so it looks "empty" when it isn't anymore. :)


Cheers,
Franco