Uninstallation

Uninstall HAProxy Enterprise on Linux

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

  1. Stop HAProxy Enterprise.

    bash
    sudo systemctl stop hapee-2.8-lb
    bash
    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:

    bash
    cp -r /etc/hapee-2.8 /tmp/hapee-2.8-lb.backup.$(date +%F_%R)
    bash
    cp -r /etc/hapee-2.8 /tmp/hapee-2.8-lb.backup.$(date +%F_%R)
  3. Query to see your installed packages.

    bash
    sudo apt list --installed | grep hapee
    bash
    sudo apt list --installed | grep hapee
    output
    bash
    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
    bash
    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]
    bash
    sudo apt list --installed | grep hapee
    bash
    sudo apt list --installed | grep hapee
    output
    bash
    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
    bash
    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]
    bash
    sudo yum list --installed hapee-*
    bash
    sudo yum list --installed hapee-*
    output
    bash
    [...]
    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
    bash
    [...]
    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
    bash
    sudo zypper search --installed-only hapee
    bash
    sudo zypper search --installed-only hapee
    output
    bash
    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
    bash
    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.

    bash
    sudo apt-get purge hapee-*
    bash
    sudo apt-get purge hapee-*
    output
    bash
    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
    bash
    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
    bash
    sudo apt-get purge hapee-*
    bash
    sudo apt-get purge hapee-*
    output
    bash
    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
    bash
    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
    bash
    sudo yum remove hapee-*
    bash
    sudo yum remove hapee-*
    output
    bash
    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
    bash
    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
    bash
    sudo zypper remove --clean-deps hapee-*
    bash
    sudo zypper remove --clean-deps hapee-*
    output
    bash
    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
    bash
    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

If this page was useful, please, Leave the feedback.