Skip to content

Instantly share code, notes, and snippets.

@joefreewave
Created October 24, 2024 17:58
Show Gist options
  • Save joefreewave/ed88dc587eb583c0412bcee87405bcf5 to your computer and use it in GitHub Desktop.
Save joefreewave/ed88dc587eb583c0412bcee87405bcf5 to your computer and use it in GitHub Desktop.
delete/uninstall gitlab runner from ubuntu 22.04
# delete/uninstall gitlab runner from ubuntu 22.04
# Stop and remove the service
sudo gitlab-runner stop
sudo gitlab-runner uninstall
sudo systemctl daemon-reload
# Remove gitlab-runner files and config
sudo rm -rf /usr/local/bin/gitlab-runner
sudo userdel gitlab-runner
sudo rm -rf /home/gitlab-runner/
@joefreewave
Copy link
Author

Also, purge the package otherwise updates might fail: sudo apt purge gitlab-runner

@DDorch
Copy link

DDorch commented Feb 15, 2025

Thanks for this tip :)

@geozeke
Copy link

geozeke commented Mar 10, 2025

Awesome! Many thanks!

I started with a .deb install on Ubuntu, but now I'm moving to the gitlab-runner docker container.

@gpapin
Copy link

gpapin commented Apr 26, 2025

I think this might be missing sudo rm -rf /etc/gitlab-runner at least it was needed on my uninstall

@adityadarma
Copy link

Thanks for this information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment