Uninstall NGINX Agent package
Overview
Learn how to uninstall NGINX Agent from your system.
Prerequisites
- NGINX Agent installed NGINX Agent installed
- The user following these steps will need
root
privilege
Uninstalling NGINX Agent
Complete the following steps on each host where you’ve installed NGINX Agent
- Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux
- Uninstalling NGINX Agent on Ubuntu
- Uninstalling NGINX Agent on Debian
- Uninstalling NGINX Agent on SLES
- Uninstalling NGINX Agent on Alpine Linux
- Uninstalling NGINX Agent on Amazon Linux
- Uninstalling NGINX Agent on FreeBSD
Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux
Complete the following steps on each host where you’ve installed NGINX Agent:
-
Stop NGINX Agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX Agent, run the following command:
sudo yum remove nginx-agent
Uninstalling NGINX Agent on Ubuntu
Complete the following steps on each host where you’ve installed NGINX Agent:
-
Stop NGINX Agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX Agent, run the following command:
sudo apt-get remove nginx-agent
Note: The
apt-get remove <package>
command will remove the package from your system, while keeping the associated configuration files for possible future use. If you want to completely remove the package and all of its configuration files, you should useapt-get purge <package>
.
Uninstalling NGINX Agent on Debian
Complete the following steps on each host where you’ve installed NGINX Agent:
-
Stop NGINX Agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX Agent, run the following command:
sudo apt-get remove nginx-agent
Note: The
apt-get remove <package>
command will remove the package from your system, while keeping the associated configuration files for possible future use. If you want to completely remove the package and all of its configuration files, you should useapt-get purge <package>
.
Uninstalling NGINX Agent on SLES
Complete the following steps on each host where you’ve installed NGINX Agent:
-
Stop NGINX agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX agent, run the following command:
sudo zypper remove nginx-agent
Uninstalling NGINX Agent on Alpine Linux
Complete the following steps on each host where you’ve installed NGINX agent:
-
Stop NGINX agent:
sudo rc-service nginx-agent stop
-
To uninstall NGINX agent, run the following command:
sudo apk del nginx-agent
Uninstalling NGINX Agent on Amazon Linux 2
Complete the following steps on each host where you’ve installed NGINX agent:
-
Stop NGINX agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX agent, run the following command:
sudo yum remove nginx-agent
Uninstalling NGINX Agent on Amazon Linux 2023
Complete the following steps on each host where you’ve installed NGINX agent:
-
Stop NGINX agent:
sudo systemctl stop nginx-agent
-
To uninstall NGINX agent, run the following command:
sudo dnf remove nginx-agent
Uninstalling NGINX Agent on FreeBSD
Complete the following steps on each host where you’ve installed NGINX agent:
-
Stop NGINX agent:
sudo service nginx-agent stop
-
To uninstall NGINX agent, run the following command:
sudo pkg delete nginx-agent