• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.5k 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
    cyruspy
    last edited by Mar 6, 2008, 10:56 PM

    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
    • J
      jahonix
      last edited by Mar 6, 2008, 11:05 PM

      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
        cyruspy
        last edited by Mar 6, 2008, 11:09 PM

        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
          cyruspy
          last edited by Mar 6, 2008, 11:22 PM

          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
          • J
            jahonix
            last edited by Mar 6, 2008, 11:26 PM

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

            1 Reply Last reply Reply Quote 0
            • C
              cyruspy
              last edited by Mar 7, 2008, 12:02 AM

              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
              • J
                jahonix
                last edited by Mar 7, 2008, 7:57 AM

                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
                  sullrich
                  last edited by Mar 7, 2008, 6:41 PM

                  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
                    cyruspy
                    last edited by Mar 10, 2008, 3:40 PM

                    @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
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received