Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
24
rated 0 times [  24] [ 0]  / answers: 1 / hits: 22841  / 2 Years ago, thu, july 14, 2022, 1:23:20

I have been experimenting with nginx as a webserver for php files. I come from an Apache background but I wanted to try it. I recently had an issue with it and needed to switch back to Apache. I removed it using apt-get remove nginx.



This worked fine and I installed Apache and life was good. I restarted my computer and somehow nginx started up. I didn't understand. I tried to remove it again and I got the message:



$ sudo apt-get remove nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'nginx' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


If I look for the program (screenshot):



$ which nginx
/usr/sbin/nginx


Does anyone know if I am doing something wrong or what the next step to removing it would be?



I am using Xubuntu 14.04.


More From » apt

 Answers
7

nginx is a metapackage, so you need to remove whatever was installed by this package. If doing sudo apt-get autoremove doesn't do the trick, you can run sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras nginx-naxsi nginx-common (you probably have only one of these packages installed, but the command shouldn't fail).


[#25588] Friday, July 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bjecterless

Total Points: 59
Total Questions: 96
Total Answers: 105

Location: Argentina
Member since Thu, Mar 18, 2021
3 Years ago
bjecterless questions
;