thanikkal
thanikkal

Reputation: 3356

Uninstall nginx installed by Passenger

How do I uninstall nginx installed as part of passenger installation on Ubuntu 11.04?

Should I just gem uninstall passenger? Will that remove nginx as well?

This is what I see when I run apt-get remove:

sudo apt-get remove nginx-common nginx-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
**Package nginx-common is not installed, so not removed
Package nginx-full is not installed, so not removed**
The following packages were automatically installed and are no longer required:
  nspluginwrapper linux-headers-2.6.38-13-generic libmysqlclient-dev libaprutil1-ldap libaprutil1-dev libmysqlclient16 libdb4.8-dev libaprutil1-dbd-sqlite3
  apache2.2-bin linux-headers-2.6.38-14-generic linux-headers-2.6.38-12 linux-headers-2.6.38-13 linux-headers-2.6.38-14 mysql-common linux-headers-2.6.38-12-generic
Use 'apt-get autoremove' to remove them.

Upvotes: 10

Views: 10120

Answers (3)

Jai Kumar Rajput
Jai Kumar Rajput

Reputation: 4217

Use following commands to completely remove Nginx:

sudo apt-get purge nginx-*
sudo apt-get autoremove

OR

For Debian/Ubuntu

sudo apt-get remove -y passenger

Red Hat/CentOS

sudo yum remove -y passenger

macOS + Homebrew

brew uninstall passenger

Ruby gem

gem uninstall passenger

Hope this will solve your problem!

Upvotes: 2

Hongli
Hongli

Reputation: 18944

Uninstallation is covered in the official manual "Phusion Passenger users guide, Nginx version".

Upvotes: 2

Gaffe
Gaffe

Reputation: 402

You most likely used passenger-install-nginx-module to install it. If you run gem uninstall passenger it will remove the dependent modules as well.

Upvotes: 3

Related Questions