Packages still present after factory reset



  • I recently did a factory reset on a PFsense.  After re-configuring it from scratch, I'm still getting syslog errors from the old packages before the reset.  For example, I'm getting this continuously:

    kernel: pid xxxx (bandwidthd), uid -: exited on signal 8 (core dumped)
    kernel: pid xxxx (bandwidthd), uid -: exited on signal 8 (core dumped)
    kernel: pid xxxx (bandwidthd), uid -: exited on signal 8 (core dumped)
    kernel: pid xxxx (bandwidthd), uid -: exited on signal 8 (core dumped)
    kernel: pid xxxx (bandwidthd), uid -: exited on signal 8 (core dumped)

    How do I permanently delete the packages without completely erasing the drive and re-installing PFsense?


  • Rebel Alliance Developer Netgate

    Doing a factory reset only resets the configuration, NOT the filesystem, so package binaries are still installed.

    You can use "pkg_info" at the shell and "pkg_delete (blah)" to get rid of the ones you know you don't need.

    A wipe+reinstall is the only way to 100% ensure you have a fresh/clean install.



  • And there are probably package start/stop scripts in /usr/local/etc/rc.d

    [2.1-RC2][root]/usr/local/etc/rc.d(14): ls -l
    -rwxr-xr-x  1 root  wheel  1311 Sep 10 07:12 bandwidthd.sh
    -rwxr-xr-x  1 root  wheel   325 Sep  9 09:42 cron.sh
    

    The pfSense bootup will be trying to execute each of these to start the corresponding package/daemon. Deleting these will stop that happening.
    The factory default config will have got rid of the GUI menu entries for any packages. And after doing pkg_delete as suggested by JimP you "should" be back to the base system. But there might be other remnants of some packages - as JimP says, a full wipe/reinstall is the way to be sure.