3

I have used only this command to install glances:

curl -L bit.ly/glances | sudo /bin/bash

Now I need to remove all the stuff that this command installed including glances. How can I do that?

thanks in advance.

wjandrea
  • 14,236
  • 4
  • 48
  • 98
Nano
  • 113
  • 2
  • 9

2 Answers2

3

Glances author (Nicolas Hennion) just answered me that exact question.

The script is based on Pipy. So you can uninstall Glances with a simple:

sudo pip uninstall glances

pip doesn't uninstall the dependencies. It only removes the specified package. As long as this issue isn't soved we can use pip-autoremove.

Pablo Bianchi
  • 15,657
  • This will not remove dependencies installed by Glances. The OP should look at the content of the file in bit.ly/glances to see what need to be removed. – Long Jan 30 '21 at 09:24
  • I edited my answer taking account of this issue. Shouldn't be necessary to read the installer script. – Pablo Bianchi Jan 30 '21 at 20:00
2

You ran a script which have installed some packages on your system, what you have to do is to remove all of them.

Here is a list of packages:

git python-pip python-dev gcc lm-sensors wireless-tools

see which one of them you don't want anymore then remove them.

it also installs some requirements using pip, I guess you can remove them using:

sudo pip uninstall -r glances/requirements.txt 
sudo pip uninstall -r glances/optional-requirements.txt

it also creates a directory named glances where you ran the installation script, remove it simple as rm -r glances.

Ravexina
  • 55,668
  • 25
  • 164
  • 183
  • This should be accepted as answer. I'd like to add that you also need to remove a binary file in /usr/local/bin/glances or /usr/bin/glances and run pip uninstall glances to remove Glances itself. – Long Jan 30 '21 at 09:25