Uninstallation

Uninstall HAProxy Enterprise on Linux

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

  1. Stop HAProxy Enterprise.

    nix
    sudo systemctl stop hapee-2.8-lb
    nix
    sudo systemctl stop hapee-2.8-lb
  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 to a safe location.

    The following command will copy the contents of /etc/hapee-2.8 to a time stamped directory in /tmp:

    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)
  3. Query to see your installed packages.

    nix
    sudo apt list --installed | grep hapee
    nix
    sudo apt list --installed | grep hapee
    output
    text
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    hapee-2.8r1-base/unknown,now 1.0.0.93.0 all [installed,automatic]
    hapee-2.8r1-lb/unknown,now 1.0.0-239.210 amd64 [installed]
    output
    text
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    hapee-2.8r1-base/unknown,now 1.0.0.93.0 all [installed,automatic]
    hapee-2.8r1-lb/unknown,now 1.0.0-239.210 amd64 [installed]
    nix
    sudo apt list --installed | grep hapee
    nix
    sudo apt list --installed | grep hapee
    output
    text
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    hapee-2.8r1-base/unknown,now 1.0.0.93.0 all [installed,automatic]
    hapee-2.8r1-lb/unknown,now 1.0.0-239.210 amd64 [installed]
    output
    text
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    hapee-2.8r1-base/unknown,now 1.0.0.93.0 all [installed,automatic]
    hapee-2.8r1-lb/unknown,now 1.0.0-239.210 amd64 [installed]
    nix
    sudo yum list --installed hapee-*
    nix
    sudo yum list --installed hapee-*
    output
    text
    [...]
    Installed Packages
    hapee-2.8r1-base.noarch 1.0.0-93.0 @hapee-base
    hapee-2.8r1-lb.x86_64 1.0.0-239.210 @hapee-base
    output
    text
    [...]
    Installed Packages
    hapee-2.8r1-base.noarch 1.0.0-93.0 @hapee-base
    hapee-2.8r1-lb.x86_64 1.0.0-239.210 @hapee-base
    nix
    sudo zypper search --installed-only hapee
    nix
    sudo zypper search --installed-only hapee
    output
    text
    Loading repository data...
    Reading installed packages...
    S | Name | Summary | Type
    ---+------------------+---------------------------------------------+--------
    i | hapee-2.8r1-base | HAPEE BASE : Common dependencies | package
    i+ | hapee-2.8r1-lb | HAPEE LB : Layer 7 load-balancing (HAProxy) | package
    output
    text
    Loading repository data...
    Reading installed packages...
    S | Name | Summary | Type
    ---+------------------+---------------------------------------------+--------
    i | hapee-2.8r1-base | HAPEE BASE : Common dependencies | package
    i+ | hapee-2.8r1-lb | HAPEE LB : Layer 7 load-balancing (HAProxy) | package
  4. Remove all HAProxy Enterprise 2.8 packages.

    nix
    sudo apt-get purge hapee-*
    nix
    sudo apt-get purge hapee-*
    output
    text
    The following packages will be REMOVED:
    hapee-2.8r1-base* hapee-2.8r1-lb*
    0 upgraded, 0 newly installed, 2 to remove and 95 not upgraded.
    After this operation, 4,556 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    output
    text
    The following packages will be REMOVED:
    hapee-2.8r1-base* hapee-2.8r1-lb*
    0 upgraded, 0 newly installed, 2 to remove and 95 not upgraded.
    After this operation, 4,556 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    nix
    sudo apt-get purge hapee-*
    nix
    sudo apt-get purge hapee-*
    output
    text
    The following packages will be REMOVED:
    hapee-2.8r1-base* hapee-2.8r1-lb*
    0 upgraded, 0 newly installed, 2 to remove and 95 not upgraded.
    After this operation, 4,556 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    output
    text
    The following packages will be REMOVED:
    hapee-2.8r1-base* hapee-2.8r1-lb*
    0 upgraded, 0 newly installed, 2 to remove and 95 not upgraded.
    After this operation, 4,556 kB disk space will be freed.
    Do you want to continue? [Y/n] y
    nix
    sudo yum remove hapee-*
    nix
    sudo yum remove hapee-*
    output
    text
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package hapee-2.8r1-base.noarch 0:1.0.0-93.0 will be erased
    ---> Package hapee-2.8r1-lb.x86_64 0:1.0.0-239.210 will be erased
    --> Finished Dependency Resolution
    Dependencies Resolved
    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Removing:
    hapee-2.8r1-base noarch 1.0.0-93.0 @hapee-base 19 k
    hapee-2.8r1-lb x86_64 1.0.0-239.210 @hapee-base 3.8 M
    Transaction Summary
    ================================================================================
    Remove 2 Packages
    Installed size: 3.8 M
    Is this ok [y/N]: y
    output
    text
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package hapee-2.8r1-base.noarch 0:1.0.0-93.0 will be erased
    ---> Package hapee-2.8r1-lb.x86_64 0:1.0.0-239.210 will be erased
    --> Finished Dependency Resolution
    Dependencies Resolved
    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Removing:
    hapee-2.8r1-base noarch 1.0.0-93.0 @hapee-base 19 k
    hapee-2.8r1-lb x86_64 1.0.0-239.210 @hapee-base 3.8 M
    Transaction Summary
    ================================================================================
    Remove 2 Packages
    Installed size: 3.8 M
    Is this ok [y/N]: y
    nix
    sudo zypper remove --clean-deps hapee-*
    nix
    sudo zypper remove --clean-deps hapee-*
    output
    text
    Reading installed packages...
    Resolving package dependencies...
    The following 3 packages are going to be REMOVED:
    hapee-2.8r1-base hapee-2.8r1-lb libpcreposix0
    3 packages to remove.
    After the operation, 15.3 MiB will be freed.
    Continue? [y/n/v/...? shows all options] (y): y
    output
    text
    Reading installed packages...
    Resolving package dependencies...
    The following 3 packages are going to be REMOVED:
    hapee-2.8r1-base hapee-2.8r1-lb libpcreposix0
    3 packages to remove.
    After the operation, 15.3 MiB will be freed.
    Continue? [y/n/v/...? shows all options] (y): y

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