Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

What is the best way to uninstall nginx

Writer Matthew Harrington

I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?

0

2 Answers

Removes all but config files.

sudo apt-get remove nginx nginx-common

Removes everything.

sudo apt-get purge nginx nginx-common

After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

sudo apt-get autoremove
9

Uninstall everything and install once again

sudo apt remove --purge nginx*
sudo apt autoremove
sudo apt update
sudo apt install nginx

Enjoy

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy