D
D
diman552017-07-08 13:11:23
bash
diman55, 2017-07-08 13:11:23

How to remove everything related to nginx 1 with command in terminal?

Hello! Please tell me how to execute all these commands at once)
apt-get remove nginx* -y
apt-get --purge autoremove nginx -y && sudo dpkg --purge nginx -y
apt-get -o DPkg::options::=- -force-confmiss --reinstall install nginx -y
I tried with && tried with bash script, it doesn't work. Only when I manually enter this one line at a time does everything work out for me ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-07-08
@sim3x

apt-get purge -y nginx nginx-common ;\
apt-get autoremove  -y;\
apt-get install -y nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question