How to manually uninstall packages (bandwidthd)?



  • 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



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



  • 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?



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



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



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



  • Sweet. Thanks for that!



  • @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…


Log in to reply