From ed9f5c765b5beda12903798cf3c6a36157d5799e Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 29 May 2023 12:15:11 +0100 Subject: [PATCH 1/5] Add NGINX Agent Uninstall Doc --- hugo/content/uninstall.md | 146 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 hugo/content/uninstall.md diff --git a/hugo/content/uninstall.md b/hugo/content/uninstall.md new file mode 100644 index 000000000..076965ba4 --- /dev/null +++ b/hugo/content/uninstall.md @@ -0,0 +1,146 @@ +--- +title: "Uninstall NGINX Agent Package" +draft: false +description: "Learn how to uninstall NGINX Agent" +weight: 500 +toc: true +tags: [ "docs" ] +docs: "DOCS-1219" +categories: ["configuration"] +doctypes: ["task"] +--- + +## Prerequisites + +- NGINX Agent installed +- `root` privilege + + +## Uninstall NGINX Agent +Complete the following steps on each host where you’ve installed the NGINX Agent + +Before you install NGINX Agent for the first time on your system, you need to set up the `nginx-agent` packages repository. Afterward, you can install and update NGINX Agent from the repository. + +- [Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux](#installing-nginx-agent-on-rhel-centos-rocky-linux-almalinux-and-oracle-linux) +- [Uninstalling NGINX Agent on Ubuntu](#installing-nginx-agent-on-ubuntu) +- [Uninstalling NGINX Agent on Debian](#installing-nginx-agent-on-debian) +- [Uninstalling NGINX Agent on SLES](#installing-nginx-agent-on-sles) +- [Uninstalling NGINX Agent on Alpine Linux](#installing-nginx-agent-on-alpine-linux) +- [Uninstalling NGINX Agent on Amazon Linux](#installing-nginx-agent-on-amazon-linux) +- [Uninstalling NGINX Agent on FreeBSD](#installing-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 the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo systemctl stop nginx-agent + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + yum remove nginx-agent + ``` + +### Uninstalling NGINX Agent on Ubuntu + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo systemctl stop nginx-agent + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + sudo apt-get remove nginx-agent + ``` + + > **Note:** The `apt-get remove ` 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 use `apt-get purge `. + +### Installing NGINX Agent on Debian + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo systemctl stop nginx-agent + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + sudo apt-get remove nginx-agent + ``` + + > **Note:** The `apt-get remove ` 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 use `apt-get purge `. + +### Installing NGINX Agent on SLES + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo systemctl stop nginx-agent + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + sudo zypper remove nginx-agent + ``` + +### Installing NGINX Agent on Alpine Linux + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo rc-service nginx-agent stop + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + sudo apk del nginx-agent + ``` + +### Installing NGINX Agent on Amazon Linux + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo systemctl stop nginx-agent + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + yum remove nginx-agent + ``` + +### Installing NGINX Agent on FreeBSD + +Complete the following steps on each host where you've installed the NGINX Agent: + +1. Stop the NGINX Agent: + + ```bash + sudo service nginx-agent stop + ``` + +2. To uninstall the NGINX Agent, run the following command: + + ```bash + sudo pkg delete nginx-agent + ``` \ No newline at end of file From 48e8de0519166eaac280a50f6be84d75f8e8b022 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 29 May 2023 13:35:41 +0100 Subject: [PATCH 2/5] addressing feedback --- hugo/content/uninstall.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/hugo/content/uninstall.md b/hugo/content/uninstall.md index 076965ba4..f47c88d25 100644 --- a/hugo/content/uninstall.md +++ b/hugo/content/uninstall.md @@ -16,18 +16,18 @@ doctypes: ["task"] - `root` privilege -## Uninstall NGINX Agent +## Uninstalling NGINX Agent Complete the following steps on each host where you’ve installed the NGINX Agent Before you install NGINX Agent for the first time on your system, you need to set up the `nginx-agent` packages repository. Afterward, you can install and update NGINX Agent from the repository. -- [Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux](#installing-nginx-agent-on-rhel-centos-rocky-linux-almalinux-and-oracle-linux) -- [Uninstalling NGINX Agent on Ubuntu](#installing-nginx-agent-on-ubuntu) -- [Uninstalling NGINX Agent on Debian](#installing-nginx-agent-on-debian) -- [Uninstalling NGINX Agent on SLES](#installing-nginx-agent-on-sles) -- [Uninstalling NGINX Agent on Alpine Linux](#installing-nginx-agent-on-alpine-linux) -- [Uninstalling NGINX Agent on Amazon Linux](#installing-nginx-agent-on-amazon-linux) -- [Uninstalling NGINX Agent on FreeBSD](#installing-nginx-agent-on-freebsd) +- [Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux](#uninstalling-nginx-agent-on-rhel-centos-rocky-linux-almalinux-and-oracle-linux) +- [Uninstalling NGINX Agent on Ubuntu](#uninstalling-nginx-agent-on-ubuntu) +- [Uninstalling NGINX Agent on Debian](#uninstalling-nginx-agent-on-debian) +- [Uninstalling NGINX Agent on SLES](#uninstalling-nginx-agent-on-sles) +- [Uninstalling NGINX Agent on Alpine Linux](#uninstalling-nginx-agent-on-alpine-linux) +- [Uninstalling NGINX Agent on Amazon Linux](#uninstalling-nginx-agent-on-amazon-linux) +- [Uninstalling NGINX Agent on FreeBSD](#uninstalling-nginx-agent-on-freebsd) ### Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux @@ -42,7 +42,7 @@ Complete the following steps on each host where you've installed the NGINX Agent 2. To uninstall the NGINX Agent, run the following command: ```bash - yum remove nginx-agent + sudo yum remove nginx-agent ``` ### Uninstalling NGINX Agent on Ubuntu @@ -63,7 +63,7 @@ Complete the following steps on each host where you've installed the NGINX Agent > **Note:** The `apt-get remove ` 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 use `apt-get purge `. -### Installing NGINX Agent on Debian +### Uninstalling NGINX Agent on Debian Complete the following steps on each host where you've installed the NGINX Agent: @@ -81,7 +81,7 @@ Complete the following steps on each host where you've installed the NGINX Agent > **Note:** The `apt-get remove ` 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 use `apt-get purge `. -### Installing NGINX Agent on SLES +### Uninstalling NGINX Agent on SLES Complete the following steps on each host where you've installed the NGINX Agent: @@ -97,7 +97,7 @@ Complete the following steps on each host where you've installed the NGINX Agent sudo zypper remove nginx-agent ``` -### Installing NGINX Agent on Alpine Linux +### Uninstalling NGINX Agent on Alpine Linux Complete the following steps on each host where you've installed the NGINX Agent: @@ -113,7 +113,7 @@ Complete the following steps on each host where you've installed the NGINX Agent sudo apk del nginx-agent ``` -### Installing NGINX Agent on Amazon Linux +### Uninstalling NGINX Agent on Amazon Linux Complete the following steps on each host where you've installed the NGINX Agent: @@ -126,10 +126,10 @@ Complete the following steps on each host where you've installed the NGINX Agent 2. To uninstall the NGINX Agent, run the following command: ```bash - yum remove nginx-agent + sudo yum remove nginx-agent ``` -### Installing NGINX Agent on FreeBSD +### Uninstalling NGINX Agent on FreeBSD Complete the following steps on each host where you've installed the NGINX Agent: From 591c4b0003094c9f94c37e31b82449895f65ab98 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Thu, 8 Jun 2023 14:18:20 +0100 Subject: [PATCH 3/5] Update hugo/content/uninstall.md Co-authored-by: Dean Coakley --- hugo/content/uninstall.md | 1 - 1 file changed, 1 deletion(-) diff --git a/hugo/content/uninstall.md b/hugo/content/uninstall.md index f47c88d25..ba475fa32 100644 --- a/hugo/content/uninstall.md +++ b/hugo/content/uninstall.md @@ -19,7 +19,6 @@ doctypes: ["task"] ## Uninstalling NGINX Agent Complete the following steps on each host where you’ve installed the NGINX Agent -Before you install NGINX Agent for the first time on your system, you need to set up the `nginx-agent` packages repository. Afterward, you can install and update NGINX Agent from the repository. - [Uninstalling NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux](#uninstalling-nginx-agent-on-rhel-centos-rocky-linux-almalinux-and-oracle-linux) - [Uninstalling NGINX Agent on Ubuntu](#uninstalling-nginx-agent-on-ubuntu) From c8b5027090e73e03f0246ea551e4724715ed9cda Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 9 Jun 2023 16:08:23 +0100 Subject: [PATCH 4/5] Add doc id --- hugo/content/uninstall.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo/content/uninstall.md b/hugo/content/uninstall.md index ba475fa32..a52a99f59 100644 --- a/hugo/content/uninstall.md +++ b/hugo/content/uninstall.md @@ -5,7 +5,7 @@ description: "Learn how to uninstall NGINX Agent" weight: 500 toc: true tags: [ "docs" ] -docs: "DOCS-1219" +docs: "DOCS-1230" categories: ["configuration"] doctypes: ["task"] --- From 05729c4c2fce28d4acc0966a60a9f1ecbf509f40 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 19 Jun 2023 16:29:04 +0100 Subject: [PATCH 5/5] Addressing feedback --- hugo/content/uninstall.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hugo/content/uninstall.md b/hugo/content/uninstall.md index a52a99f59..5479d0d19 100644 --- a/hugo/content/uninstall.md +++ b/hugo/content/uninstall.md @@ -12,9 +12,8 @@ doctypes: ["task"] ## Prerequisites -- NGINX Agent installed -- `root` privilege - +- NGINX Agent installed [NGINX Agent installed](../installation-oss) +- The user following these steps will need `root` privilege ## Uninstalling NGINX Agent Complete the following steps on each host where you’ve installed the NGINX Agent