Navigation

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

    How to manually uninstall packages (bandwidthd)?

    pfSense Packages
    4
    8
    36267
    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.
    • G
      gshipp last edited by

      I've just installed the bandwidthd package but accidently refreshed the install package page and did a double install. When I try use the package I now get "XML error: no packagegui object found! " on the screen. I tried to uninstall the package but I get the same error message. Is it some how possible to manually uninstall this package?

      I'm using pfSense 1.2 RC2

      1 Reply Last reply Reply Quote 0
      • AhnHEL
        AhnHEL last edited by

        Go to Diagnostics/Command and in the command line type

        pkg_info

        Find the exact package name of bandwidthd, then in the command line again type:

        pkg_delete (followed by the bandwidth name you noted with pkg_info)

        You could pkg_info after that to confirm its uninstalled.

        AhnHEL (Angel)
        NYC

        4 *sense sites:
        Dell R210 II, Xeon 1230v2, 16GB RAM, 940/880 Mbps
        Dell R210 II, Xeon 1240v2, 8GB RAM, 940/880 Mbps
        Dell R210 II, Xeon 1220, 8GB RAM, 100/30 Mbps
        Dell 7010 Optiplex SFF, i5-3570, 16GB RAM, 100/30 Mbps

        1 Reply Last reply Reply Quote 0
        • G
          gshipp last edited by

          I've performed that command and confirmed its been uninstalled using pkg_info however, bandwidthd is still showing as installed via the webgui. Do I need to reboot pfSense?

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

            And to be sure it doesn't get re-installed on boot got to Diagnosics | Backup/Restore, download the config.xml and
            from  <installedpackages>  edit out:

            <package><name>bandwidthd</name>
            …</package>

            Restore configuration from the GUI and it will reboot automatically after that.
            If the package info is still found in the config.xml then pfSense tries to reinstall it on boot.</installedpackages>

            1 Reply Last reply Reply Quote 0
            • G
              gshipp last edited by

              Thanks for that. In the .XML file I'm going to remove the following lines….can I use Microsoft Word or Dreamer Weaver to edit the .XML? I'm worried they going to change the charector code of the FreeBSD text formatting in the .XML. If that makes sense?

              <package><name>bandwidthd</name>
              <website>http://bandwidthd.sourceforge.net/</website>
              <descr>BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address's utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.</descr>
              <category>System</category>
              <version>2.0.1.1</version>
              <status>BETA</status>
              <required_version>1.0</required_version>
              <depends_on_package_base_url>ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/All/</depends_on_package_base_url>
              <depends_on_package>bandwidthd-2.0.1.tbz</depends_on_package>
              <config_file>http://www.pfsense.org/packages/config/bandwidthd/bandwidthd.xml</config_file>
              <configurationfile>bandwidthd.xml</configurationfile></package>

              <menu>
              <name>BandwidthD</name>
              <tooltiptext>Services
              <url>/pkg_edit.php?xml=bandwidthd.xml&id=0</url></tooltiptext> </menu>

              <service><name>bandwidthd</name>
              <rcfile>bandwidthd.sh</rcfile>
              <executable>bandwidthd</executable></service>

              1 Reply Last reply Reply Quote 0
              • H
                hoba last edited by

                http://www.pspad.com/ is a good freeware editor that won't change the fileformat. I use it to do all my config.xml editing beyond other things as well.

                1 Reply Last reply Reply Quote 0
                • G
                  gshipp last edited by

                  Sweet. Thanks for that!

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

                    @gshipp:

                    …can I use Microsoft Word or Dreamer Weaver to edit the .XML?

                    No, please don't!
                    Even though it's an XML file you can edit it with most any pure text editors like notepad from Windows.

                    I'd like to mention notepad++ (http://notepad-plus.sourceforge.net) which is a free notepad alternative comparable to hoba's editor of choice. UltraEdit should work as well but I think it's not free…

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post