Uninstalling Packages from command line



  • Hi, how can i uninstall snort from command line?, I tried to uninstall it from the web interface but all i get is:

    Removing package…
    Loading package configuration snort.xml...
    Loading package instructions...

    And stays there...



  • Sounds like you hit 'reinstall package' rather than 'delete'.

    On the other hand, at the console enter  pkg_info  to see the snort version installed.
    pkg_delete snort-x-y… should get rid of it then.



  • In fact, tried to update it by hitting reinstall, but was the process became stale too… So tried with a delete later...



  • According to pkginfo, there's no snort package, but the web interface says the old version is still installed…



  • Does it show the package as installed or does it still show the menu entry?



  • It appears as installed, package version states: "Current: 2.7.0.1_3 - Installed: 2.6.1.3_2"

    There's also a "Snort" entry under services, but trying to select it i get:

    Warning: main(/usr/local/pkg/snort.inc): failed to open stream: No such file or directory in /usr/local/www/pkg_edit.php on line 53 Fatal error: main(): Failed opening required '/usr/local/pkg/snort.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /usr/local/www/pkg_edit.php on line 53



  • You can try removing this package entry from your config.xml, restore it (which automatically reboots your pfSense) and see what happens.
    If that doesn't help, a fresh install will take care of it. Apply the edited config.xml without any snort references afterwards and you should we where you want.



  • Use Diagnostics -> Edit file and edit /cf/conf/config.xml and remove any related snort items in the <installedpackages>area.  No reboot is required.

    Afterwards reinstall snort from System -> Packages.</installedpackages>



  • @sullrich:

    Use Diagnostics -> Edit file and edit /cf/conf/config.xml and remove any related snort items in the <installedpackages>area.  No reboot is required.

    Afterwards reinstall snort from System -> Packages.</installedpackages>

    That did it, thanks!


Locked