OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: dcol on March 02, 2018, 05:48:08 pm

Title: Uninstall built-in packages
Post by: dcol on March 02, 2018, 05:48:08 pm
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?
Title: [Solved] Re: Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:02:13 pm
never mind figured it out

# pkg set -v 0 apinger
# pkg remove -f apinger
Title: Re: [Solved] Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:04:14 pm
Ok, not solved. I uninstalled the package, rebooted and it is still there.

Did I miss something?
Title: Re: Uninstall built-in packages
Post by: franco on March 02, 2018, 06:10:24 pm
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?
Title: Re: Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:14:37 pm
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
Title: Re: Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:17:56 pm
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?
Title: Re: Uninstall built-in packages
Post by: franco on March 02, 2018, 06:18:36 pm
Hmm, does this produce a search result?

# grep monitor_disable /conf/config.xml

You removed apinger, it wants it back...

# pkg upgrade
Title: Re: Uninstall built-in packages
Post by: franco on March 02, 2018, 06:20:35 pm
When ticking all gateways for "Disable Gateway Monitoring" and hitting apply apinger is not started.
Title: Re: Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:24:17 pm
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.
Title: Re: Uninstall built-in packages
Post by: franco on March 02, 2018, 06:27:28 pm
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.
Title: Re: Uninstall built-in packages
Post by: dcol on March 02, 2018, 06:37:33 pm
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
Title: Re: Uninstall built-in packages
Post by: franco on March 02, 2018, 07:00:46 pm
Second part sounds like WAN is not up when the boot finishes so it looks "empty" when it isn't anymore. :)


Cheers,
Franco