Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove | Delete | Uninstall Solr7 #1607

Open
petrowsky opened this issue Dec 2, 2021 · 0 comments
Open

Remove | Delete | Uninstall Solr7 #1607

petrowsky opened this issue Dec 2, 2021 · 0 comments

Comments

@petrowsky
Copy link

I needed to remove solr7 on a box which wasn't using it (it was previously installed). I'm posting here for docs for others who may need the same.

Based on this askubuntu article I made a bash script to uninstall. @omega8cc Please update/comment as needed.

uninstall_solr7.sh

#!/bin/bash

service solr7 stop
update-rc.d -f solr7 remove
rm -f /etc/default/solr7.in.sh
rm -f /etc/init.d/solr7
rm -rf /var/solr7/
gpasswd -d solr7 users
deluser --remove-home solr7
deluser --group solr7

You may also opt to uninstall java (openjdk) via apt|aptitude if it's not needed for anything else.

@petrowsky petrowsky changed the title Removing Solr7 Remove | Delete | Uninstall Solr7 Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants