You are not logged in.

#1 2012-01-10 17:02:22

scrawler
Member
Registered: 2005-06-07
Posts: 318

starting from scratch with python

Hey guys,

I've been having some problems with python lately, and re-installing it solved some problems but created others.

Is there an easy way to completely remove python and all its modules and then install them again?

Sorry if this is somewhat vague. I can provide more detail as needed. Thanks!

Offline

#2 2012-01-10 17:35:23

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: starting from scratch with python

# pacman -Rc python python2
# find /usr/lib/python* -type f -o -type l | xargs pacman -Qqo 2>&1 | grep "^error: No package owns" | cut -d' ' -f5 | xargs rm
# find /usr/lib/python* -empty -delete

I'd consider that a bit 'hardcore' but after that the system should be Python-free, at least for pacman.


1000

Offline

Board footer

Powered by FluxBB