Uninstall netdata? #103

Closed
cpunix opened this Issue Mar 31, 2016 · 14 comments

Comments

Projects
None yet
7 participants
@cpunix

cpunix commented Mar 31, 2016

Installed on Ubuntu server, but how can I uninstall in scratch?

@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

Never mind. Figured it out by:

apt-get remove zlib1g-dev gcc make git autoconf autogen automake pig-config

Let me know if I missed anything.

cpunix commented Mar 31, 2016

Never mind. Figured it out by:

apt-get remove zlib1g-dev gcc make git autoconf autogen automake pig-config

Let me know if I missed anything.

@Tmplt

This comment has been minimized.

Show comment
Hide comment
@Tmplt

Tmplt Mar 31, 2016

That command removes dependencies for building netdata. The program itself is still somewhere on your system. I don't know of any other way than to rm the installed binaries -- I'm not in custom with Ubuntu.

Tmplt commented Mar 31, 2016

That command removes dependencies for building netdata. The program itself is still somewhere on your system. I don't know of any other way than to rm the installed binaries -- I'm not in custom with Ubuntu.

@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

@Tmplt

That's what I suspected. I'll keep looking.

cpunix commented Mar 31, 2016

@Tmplt

That's what I suspected. I'll keep looking.

@Tmplt

This comment has been minimized.

Show comment
Hide comment
@Tmplt

Tmplt Mar 31, 2016

From what I gather from the documentation, only the netdata binary and it's configuration directory is created when installing. You can find the former's location with which netdata (if its directory is in your PATH).

Then you can remove the configs by removing the /etc/netdata/ directory.

I'm not sure if there is a more proper way of doing this on Ubuntu, though.

Tmplt commented Mar 31, 2016

From what I gather from the documentation, only the netdata binary and it's configuration directory is created when installing. You can find the former's location with which netdata (if its directory is in your PATH).

Then you can remove the configs by removing the /etc/netdata/ directory.

I'm not sure if there is a more proper way of doing this on Ubuntu, though.

@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

I removed the /etc/netdata/, /root/netdata/ and var/log/netdata/. I'm looking for a installed log something like that. Thank you for your time on the documentation, you beat me to it!

cpunix commented Mar 31, 2016

I removed the /etc/netdata/, /root/netdata/ and var/log/netdata/. I'm looking for a installed log something like that. Thank you for your time on the documentation, you beat me to it!

@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

Looks like everything's clean up with netdata. Is there any fast way with a single command for look in each log file that match the word "netdata" so I could still remove them off?

cpunix commented Mar 31, 2016

Looks like everything's clean up with netdata. Is there any fast way with a single command for look in each log file that match the word "netdata" so I could still remove them off?

@nvtkaszpir

This comment has been minimized.

Show comment
Hide comment
@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

Thanks, nvtkaszpr! That's even more details!

cpunix commented Mar 31, 2016

Thanks, nvtkaszpr! That's even more details!

@tsumaru720

This comment has been minimized.

Show comment
Hide comment
@tsumaru720

tsumaru720 Mar 31, 2016

I just removed it from some of my stuff (for now!) - Below paths are based on the defaults used to install, obviously change if you used a custom install path

Was basically:

killall netdata
apt-get remove zlib1g-dev gcc make git autoconf autogen automake pkg-config
rm -Rf /usr/sbin/netdata
rm -Rf /etc/netdata
rm -Rf /usr/share/netdata
rm -Rf /usr/libexec/netdata
rm -Rf /var/cache/netdata
rm -Rf /var/log/netdata
rm -Rf /opt/netdata
userdel netdata

I just removed it from some of my stuff (for now!) - Below paths are based on the defaults used to install, obviously change if you used a custom install path

Was basically:

killall netdata
apt-get remove zlib1g-dev gcc make git autoconf autogen automake pkg-config
rm -Rf /usr/sbin/netdata
rm -Rf /etc/netdata
rm -Rf /usr/share/netdata
rm -Rf /usr/libexec/netdata
rm -Rf /var/cache/netdata
rm -Rf /var/log/netdata
rm -Rf /opt/netdata
userdel netdata
@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

Thanks for the additional tips, tsumaru720!

cpunix commented Mar 31, 2016

Thanks for the additional tips, tsumaru720!

@ktsaou

This comment has been minimized.

Show comment
Hide comment
@ktsaou

ktsaou Mar 31, 2016

Member

and

groupdel netdata
Member

ktsaou commented Mar 31, 2016

and

groupdel netdata
@cbricart

This comment has been minimized.

Show comment
Hide comment
@cbricart

cbricart Mar 31, 2016

Contributor

actually, if it has been installed by a package manager (i.e apt, emerge, dnf|yum|rpm, ..) from a binary package, the package manger knows best what and how to uninstall from the tree..

if it was installed »by hand« (i.e. git clone.. && ./configure .. &% make && make install) it should have been installed w/i it's own prefix path (./configure --install /opt/netdata ...) - then uninstalling would simply be rm -rf /opt/netdata (and removing the user & group, of course)

Contributor

cbricart commented Mar 31, 2016

actually, if it has been installed by a package manager (i.e apt, emerge, dnf|yum|rpm, ..) from a binary package, the package manger knows best what and how to uninstall from the tree..

if it was installed »by hand« (i.e. git clone.. && ./configure .. &% make && make install) it should have been installed w/i it's own prefix path (./configure --install /opt/netdata ...) - then uninstalling would simply be rm -rf /opt/netdata (and removing the user & group, of course)

@jrgp

This comment has been minimized.

Show comment
Hide comment
@jrgp

jrgp Mar 31, 2016

You could also install to a specific prefix, and then rm -rf the prefix if you no longer need it.

For instance I put mine under /opt/netdata

./netdata-installer.sh --install /opt/netdata

And if I decided I didn't want it anymore

rm -rf /opt/netdata

jrgp commented Mar 31, 2016

You could also install to a specific prefix, and then rm -rf the prefix if you no longer need it.

For instance I put mine under /opt/netdata

./netdata-installer.sh --install /opt/netdata

And if I decided I didn't want it anymore

rm -rf /opt/netdata
@cpunix

This comment has been minimized.

Show comment
Hide comment
@cpunix

cpunix Mar 31, 2016

They're all cleaned out of the system. Thank you guys!

cpunix commented Mar 31, 2016

They're all cleaned out of the system. Thank you guys!

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