Shuo Asked: 2013-01-03 12:13:35 +0800 CST2013-01-03 12:13:35 +0800 CST 2013-01-03 12:13:35 +0800 CST What is the best way to uninstall nginx 772 I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx? nginx 2 Answers Voted Best Answer squareborg 2013-01-03T12:25:12+08:002013-01-03T12:25:12+08:00 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 MD SHAYON 2021-09-19T20:12:16+08:002021-09-19T20:12:16+08:00 Uninstall everything and install once again sudo apt remove --purge nginx* sudo apt autoremove sudo apt update sudo apt install nginx Enjoy
Removes all but config files.
Removes everything.
After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.
Uninstall everything and install once again
Enjoy