Remove Gitlab CE on CentOS Stream/Rocky OS

Mindwatering Incorporated

Author: Tripp W Black

Created: 08/05 at 02:00 PM

 

Category:
Linux
Other

Task


Removing Gitlab CE after installing via the URL script, via dnf remove gitlab-ce doesn't perform a clean uninstall. Need a cleaner uninstall so we don't have to kick-off a new VM just to uninstall a package.
The Gitlab documents are lacking on uninstall - appears you are never to uninstall this product.

Steps:
1 Perform gitlab-ctl cleanup steps:
a. Stop service:
$ sudo gitlab-ctl stop
<wait>

b. Uninstall:
$ sudo gitlab-ctl uninstall
<wait>

c. Clean-up
$ sudo gitlab-ctl cleanse
<wait>

$ sudo gitlab-ctl remove-accounts
<wait and ignore the script errors about the account git not existing>


2. Perform OS Uninstall
a. Run uninstall:
$ sudo dnf remove gitlab-ce
<confirm yes, and wait>

b. Remove folders:
$ sudo rm -rf /opt/gitlab
$ sudo rm -rf /etc/gitlab
$ sudo rm -rf /var/opt/gitlab

c. Restart
$ sudo reboot
or
$ shutdown -r now



previous page

×