Cockpit: uninstall/remove cockpit

Created on 7 Aug 2019  ·  5Comments  ·  Source: cockpit-project/cockpit

hi, I wondering how can I uninstall/remove cockpit from my VPS (centos/ubuntu) server.
I searched a lot but, I couldn't find any documents or instructions to HOW To Do It!.
thanks.

question

Most helpful comment

hi again, I have cockpit on my centos VPS and tried removing this with:

sudo systemctl stop cockpit
sudo systemctl disable cockpit
sudo yum remove cockpit

and even
sudo rpm -e cockpit
but when I use my.public.I.P:9090 still login page shows up!
I remove the service in firewalld, reload firewalld and reboot my VM
sudo firewall-cmd --permanent --remove-service=cockpit
its fine now.
after all, I think the project should have documentation to how remove the program.
thanks for reply.

For uninstalling on Centos you should try:

systemctl stop cockpit
rpm -e cockpit-system
rpm -e cockpit-bridge
rpm -e cockpit-ws
rm -R -f /run/cockpit
rm -R -f /etc/cockpit
rm -R -f /usr/share/cockpit
rm -R -f /var/lib/selinux/targeted/active/modules/100/cockpit
rm -R -f /usr/share/selinux/targeted/default/active/modules/100/cockpit

All 5 comments

There's nothing special about it -- sudo apt purge cockpit?

hi again, I have cockpit on my centos VPS and tried removing this with:

sudo systemctl stop cockpit
sudo systemctl disable cockpit
sudo yum remove cockpit

and even
sudo rpm -e cockpit
but when I use my.public.I.P:9090 still login page shows up!
I remove the service in firewalld, reload firewalld and reboot my VM
sudo firewall-cmd --permanent --remove-service=cockpit
its fine now.
after all, I think the project should have documentation to how remove the program.
thanks for reply.

sudo systemctl stop cockpit

This is shortcut for sudo systemctl stop cockpit.service. You need to stop the cockpit.socket (you can do it with sudo systemctl stop cockpit.socket. (Not sure about what version of systemd you have, but on mine system when I am stopping the service it notifies me that the socket can still activate the service).

sudo yum remove cockpit

That should work. It should also remove as dependency cockpit-ws.

thanks. I liked this program, but anyways, uninstall instruction is missing on documentation :)

hi again, I have cockpit on my centos VPS and tried removing this with:

sudo systemctl stop cockpit
sudo systemctl disable cockpit
sudo yum remove cockpit

and even
sudo rpm -e cockpit
but when I use my.public.I.P:9090 still login page shows up!
I remove the service in firewalld, reload firewalld and reboot my VM
sudo firewall-cmd --permanent --remove-service=cockpit
its fine now.
after all, I think the project should have documentation to how remove the program.
thanks for reply.

For uninstalling on Centos you should try:

systemctl stop cockpit
rpm -e cockpit-system
rpm -e cockpit-bridge
rpm -e cockpit-ws
rm -R -f /run/cockpit
rm -R -f /etc/cockpit
rm -R -f /usr/share/cockpit
rm -R -f /var/lib/selinux/targeted/active/modules/100/cockpit
rm -R -f /usr/share/selinux/targeted/default/active/modules/100/cockpit
Was this page helpful?
0 / 5 - 0 ratings