Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Uninstalling Packages from command line

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 3 Posters 19.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      cyruspy
      last edited by

      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...

      1 Reply Last reply Reply Quote 0
      • jahonixJ Offline
        jahonix
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cyruspy
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • C Offline
            cyruspy
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • jahonixJ Offline
              jahonix
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • C Offline
                cyruspy
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • jahonixJ Offline
                  jahonix
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sullrich
                    last edited by

                    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>

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cyruspy
                      last edited by

                      @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!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.