Uninstalling a dynamic module

Instructions

  1. To uninstall a dynamic module:

    For Amazon Linux 2, CentOS, Oracle Linux, and RHEL:

    sudo yum remove <dynamic_module_name>

    For Amazon Linux 2023, AlmaLinux, Rocky Linux:

    sudo dnf remove <dynamic_module_name>

    For Debian and Ubuntu:

    sudo apt remove <dynamic_module_name>

    For SLES:

    sudo zypper remove <dynamic_module_name>

    For FreeBSD:

    sudo pkg delete <dynamic_module_name>

Configuration

After uninstalling the package, you will need to disable the module in F5 NGINX Plus configuration file nginx.conf.

  1. Disable dynamic loading of the module by removing the corrsponding load_module directive.

  2. In NGINX Plus configuration file, remove all directives related to the dynamic module.

  3. Test the NGINX Plus configuration. In a terminal, type-in the command:

    nginx -t

    Expected output of the command:

    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf is successful
  4. Reload the NGINX Plus configuration to enable the module:

    nginx -s reload

More Info