You are not logged in.

#1 2018-10-07 17:43:15

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

[Solved] Delete python installed from source code

Half of year ago I have made fool mistake. I have installed python from source code with make install. Can anybody advice method to delete it without aftermath for system? Now I have python3.6 installed from source and python3.7 installed with pacman. Some troubles occurs. For example I need manually change name of python from python3 to python3.7 in bash scripts (e.g. reflector).

Last edited by Kirill Bugaev (2018-10-07 19:30:23)

Offline

#2 2018-10-07 18:21:27

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] Delete python installed from source code

pacman -S lostfiles

The lostfiles script will list files that pacman does not know about, which you may want to delete in order to clean up your system.

A more targeted solution, if you still have the python source code which you installed, is to try running make uninstall.

...

Most likely, everything that is relevant there will be in /usr/lib/python3.6

So,

pacman -Qo /usr/lib/python3.6

then remove this directory, clean up any remaining untracked files, and pacman -S python just to make sure that /usr/bin/python etc. are the right versions.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-10-07 19:15:12

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: [Solved] Delete python installed from source code

eschwartz, thanks.

$ pacman -Qo /usr/lib/python3.6
error: No package owns /usr/lib/python3.6

I have removed this directory, /usr/local/lib/python3.6, /usr/local/include/python3.6m and python3* files in /usr/local/bin, then reinstall python.

Last edited by Kirill Bugaev (2018-10-07 19:24:23)

Offline

Board footer

Powered by FluxBB