You are not logged in.

#1 2009-04-12 08:28:59

Sekra
Member
From: Finland
Registered: 2008-01-25
Posts: 14

how to remove a program when installed from source with python[solved]

I have a problem where I installed a program (fail2ban) earlier from the sources and it used a python setup script to install. Now I noticed that pacman also offers fail2ban. I want to keep my system clean so I want to first remove the version I installed from sources but I cannot find any way to do that. The readme told me to install using "python setup.py install" but there is no "python setup.py uninstall" or anything similar. I am getting very frustrated about this issue.

Last edited by Sekra (2009-04-12 09:47:56)

Offline

#2 2009-04-12 08:38:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: how to remove a program when installed from source with python[solved]

There may be something like "python setup.py uninstall"

Offline

#3 2009-04-12 08:40:17

Sekra
Member
From: Finland
Registered: 2008-01-25
Posts: 14

Re: how to remove a program when installed from source with python[solved]

Sekra wrote:

The readme told me to install using "python setup.py install" but there is no "python setup.py uninstall" or anything similar.

Ehm?

Offline

#4 2009-04-12 08:54:35

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: how to remove a program when installed from source with python[solved]

If you can't find a clear list of files that it installed and other changes that it made, you could try using pacpal's "--list-unpkgd" option if you have an idea of where it's installed.

You could also just force-install the pacman package and hope that it overwrites all of the manually installed files.

The last thing that I can think of is manually installing fail2ban in a chroot and then checking what files it creates.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-04-12 08:58:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: how to remove a program when installed from source with python[solved]

Sekra wrote:
Sekra wrote:

The readme told me to install using "python setup.py install" but there is no "python setup.py uninstall" or anything similar.

Ehm?

HAHA!  I should read things more carefully...  If you know some python, you can also look at the setup.py script and see what it installs.

Offline

#6 2009-04-12 09:30:54

Sekra
Member
From: Finland
Registered: 2008-01-25
Posts: 14

Re: how to remove a program when installed from source with python[solved]

solved the problem by removing everything I could find with 'locate fail2ban'.. I hope I didnt break anything by doing that

Offline

#7 2009-04-12 09:32:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to remove a program when installed from source with python[solved]

Or you can see what has been installed by running setup.py again with --root=/some/dir, and then looking in /some/dir.

Offline

#8 2009-04-12 09:39:57

plurt
Member
Registered: 2008-10-16
Posts: 88

Re: how to remove a program when installed from source with python[solved]

tag [SOLVED] ? smile


When everything's coming your way, you're in the wrong lane I say.
FAQ / Beginners Guide / The Arch Way

Offline

#9 2009-04-12 09:49:09

Sekra
Member
From: Finland
Registered: 2008-01-25
Posts: 14

Re: how to remove a program when installed from source with python[solved]

tomk wrote:

Or you can see what has been installed by running setup.py again with --root=/some/dir, and then looking in /some/dir.

Dont want to mess up the system. I'm amazed how ppl tell that linux is advanced and stuff but then you cant find a simple uninstall command for things like this.

Offline

#10 2009-04-12 12:08:52

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: how to remove a program when installed from source with python[solved]

Sekra wrote:
tomk wrote:

Or you can see what has been installed by running setup.py again with --root=/some/dir, and then looking in /some/dir.

Dont want to mess up the system. I'm amazed how ppl tell that linux is advanced and stuff but then you cant find a simple uninstall command for things like this.

No different from windows.
Anyway, this is why package managers like pacman exists. You should have used it in the first place smile


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#11 2009-04-12 12:16:30

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: how to remove a program when installed from source with python[solved]

Sekra wrote:
tomk wrote:

Or you can see what has been installed by running setup.py again with --root=/some/dir, and then looking in /some/dir.

Dont want to mess up the system. I'm amazed how ppl tell that linux is advanced and stuff but then you cant find a simple uninstall command for things like this.

That won't mess up your system. Anyway, be amazed that the developer of that particular program didn't provide a way to uninstall it.

Last edited by moljac024 (2009-04-12 12:18:35)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#12 2009-04-12 12:34:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: how to remove a program when installed from source with python[solved]

moljac024 wrote:
Sekra wrote:
tomk wrote:

Or you can see what has been installed by running setup.py again with --root=/some/dir, and then looking in /some/dir.

Dont want to mess up the system. I'm amazed how ppl tell that linux is advanced and stuff but then you cant find a simple uninstall command for things like this.

That won't mess up your system. Anyway, be amazed that the developer of that particular program didn't provide a way to uninstall it.

Sadly, setuptools is a mess hmm


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB