Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
Uninstall built-in packages
« previous
next »
Print
Pages: [
1
]
Author
Topic: Uninstall built-in packages (Read 11212 times)
dcol
Hero Member
Posts: 635
Karma: 51
Uninstall built-in packages
«
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?
«
Last Edit: March 02, 2018, 06:04:29 pm by dcol
»
Logged
dcol
Hero Member
Posts: 635
Karma: 51
[Solved] Re: Uninstall built-in packages
«
Reply #1 on:
March 02, 2018, 06:02:13 pm »
never mind figured it out
# pkg set -v 0 apinger
# pkg remove -f apinger
Logged
dcol
Hero Member
Posts: 635
Karma: 51
Re: [Solved] Uninstall built-in packages
«
Reply #2 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?
«
Last Edit: March 02, 2018, 06:07:22 pm by dcol
»
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Uninstall built-in packages
«
Reply #3 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?
Logged
dcol
Hero Member
Posts: 635
Karma: 51
Re: Uninstall built-in packages
«
Reply #4 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
Logged
dcol
Hero Member
Posts: 635
Karma: 51
Re: Uninstall built-in packages
«
Reply #5 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?
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Uninstall built-in packages
«
Reply #6 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
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Uninstall built-in packages
«
Reply #7 on:
March 02, 2018, 06:20:35 pm »
When ticking all gateways for "Disable Gateway Monitoring" and hitting apply apinger is not started.
Logged
dcol
Hero Member
Posts: 635
Karma: 51
Re: Uninstall built-in packages
«
Reply #8 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.
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Uninstall built-in packages
«
Reply #9 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.
Logged
dcol
Hero Member
Posts: 635
Karma: 51
Re: Uninstall built-in packages
«
Reply #10 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
«
Last Edit: March 02, 2018, 06:40:17 pm by dcol
»
Logged
franco
Administrator
Hero Member
Posts: 17473
Karma: 1587
Re: Uninstall built-in packages
«
Reply #11 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
Uninstall built-in packages