Uninstallation

Uninstall HAProxy Enterprise on BSD

Follow these steps to uninstall HAProxy Enterprise from a BSD system.

  1. Stop HAProxy Enterprise.

    Stop the service
    nix
    sudo service hapee_31_lb onestop
    nix
    sudo service hapee_31_lb onestop
    nix
    sudo service hapee_30_lb onestop
    nix
    sudo service hapee_30_lb onestop
    nix
    sudo service hapee_29_lb onestop
    nix
    sudo service hapee_29_lb onestop
    nix
    sudo service hapee_28_lb onestop
    nix
    sudo service hapee_28_lb onestop
    nix
    sudo service hapee_27_lb onestop
    nix
    sudo service hapee_27_lb onestop
    nix
    sudo service hapee_26_lb onestop
    nix
    sudo service hapee_26_lb onestop
    nix
    sudo service hapee_25_lb onestop
    nix
    sudo service hapee_25_lb onestop
    nix
    sudo service hapee_24_lb onestop
    nix
    sudo service hapee_24_lb onestop
    nix
    sudo service hapee_23_lb onestop
    nix
    sudo service hapee_23_lb onestop
    nix
    sudo service hapee_22_lb onestop
    nix
    sudo service hapee_22_lb onestop
    nix
    sudo service hapee_21_lb onestop
    nix
    sudo service hapee_21_lb onestop
    nix
    sudo service hapee_20_lb onestop
    nix
    sudo service hapee_20_lb onestop
    nix
    sudo service hapee_19_lb onestop
    nix
    sudo service hapee_19_lb onestop
    nix
    sudo service hapee_18_lb onestop
    nix
    sudo service hapee_18_lb onestop
  2. Back up your configuration files.

    The HAProxy Enterprise configuration directory may contain files that you wish to keep: SSL/TLS certificates, map files, and other files that you may wish to preserve after uninstallation. Ensure that any files you wish to keep are copied from /tmp to a safe location as BSD typically removes the contents of /tmp upon reboot.

    The following command copies the contents of the configuration directory to a time-stamped directory in /tmp:

    Copy the configuration directory
    nix
    cp -r /etc/hapee-3.1 /tmp/hapee-3.1-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-3.1 /tmp/hapee-3.1-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-3.0 /tmp/hapee-3.0-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-3.0 /tmp/hapee-3.0-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.9 /tmp/hapee-2.9-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.9 /tmp/hapee-2.9-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.8 /tmp/hapee-2.8-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.8 /tmp/hapee-2.8-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.7 /tmp/hapee-2.7-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.7 /tmp/hapee-2.7-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.6 /tmp/hapee-2.6-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.6 /tmp/hapee-2.6-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.5 /tmp/hapee-2.5-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.5 /tmp/hapee-2.5-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.4 /tmp/hapee-2.4-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.4 /tmp/hapee-2.4-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.3 /tmp/hapee-2.3-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.3 /tmp/hapee-2.3-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.2 /tmp/hapee-2.2-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.2 /tmp/hapee-2.2-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.1 /tmp/hapee-2.1-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.1 /tmp/hapee-2.1-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.0 /tmp/hapee-2.0-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-2.0 /tmp/hapee-2.0-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-1.9 /tmp/hapee-1.9-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-1.9 /tmp/hapee-1.9-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-1.8 /tmp/hapee-1.8-lb.backup.$(date +%F_%R)
    nix
    cp -r /etc/hapee-1.8 /tmp/hapee-1.8-lb.backup.$(date +%F_%R)
  3. Query to see your installed packages.

    nix
    sudo pkg info hapee*
    nix
    sudo pkg info hapee*

    Example output for version 3.1r1:

    output
    text
    hapee-3.1r1-lb-1.0.0.237.0
    output
    text
    hapee-3.1r1-lb-1.0.0.237.0
  4. Remove all HAProxy Enterprise packages.

    nix
    sudo pkg remove hapee-*
    nix
    sudo pkg remove hapee-*

    Example output for version 3.1r1:

    output
    text
    Checking integrity... done (0 conflicting)
    Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
    Installed packages to be REMOVED:
    hapee-3.1r1-lb: 1.0.0.237.0
    Number of packages to be removed: 1
    The operation will free 5 MiB.
    Proceed with deinstalling packages? [y/N]: y
    output
    text
    Checking integrity... done (0 conflicting)
    Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
    Installed packages to be REMOVED:
    hapee-3.1r1-lb: 1.0.0.237.0
    Number of packages to be removed: 1
    The operation will free 5 MiB.
    Proceed with deinstalling packages? [y/N]: y

Do you have any suggestions on how we can improve the content of this page?