LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   remove python 3.8.5 packages and dependencies completely from rhel 8 (https://www.linuxquestions.org/questions/linux-software-2/remove-python-3-8-5-packages-and-dependencies-completely-from-rhel-8-a-4175682213/)

sabsac 09-16-2020 09:50 AM

remove python 3.8.5 packages and dependencies completely from rhel 8
 
How to remove python 3.8.5 and including its packages and dependencies completely from red hat linux 8 enterprise version from gcp instance? please provide step by step approach. can we use yum or dnf? I installed it thru /opt folder using wget command and untarring it. it was not set up successfully hence I want to remove it.

dugan 09-16-2020 09:52 AM

If you installed it into /opt, then just delete it with "rm -rf".

sabsac 09-16-2020 09:55 AM

and the dependencies?

dugan 09-16-2020 09:56 AM

You downloaded it with wget and untarred it. What dependencies are you referring to?

pan64 09-16-2020 09:59 AM

you need to know what did you download and untar. If you did not use any package management tool (like rpm, dnf, yum) you can just remove everything what was stored.
Also if you executed some python setup.py <whatever> or pip install <whatever> you need to know what was that and how it was invoked and also you need to remove the directory created by that command.

dugan 09-16-2020 10:00 AM

Quote:

Originally Posted by pan64 (Post 6166445)
Also if you executed some python setup.py <whatever> or pip install <whatever> you need to know what was that and how it was invoked and also you need to remove the directory created by that command.

Unless sabsac changed something, they would have gone into the Python installation directory in /opt.

business_kid 09-17-2020 01:27 PM

Personally, I would update myself on the '--do-it-anyhow' and '--shut-up' type switches in dnf or rpm.

All the apps will want to hang onto python3, as they use it. All the modules can go, unless the apps depend on them. Apt is nasty for that imho, but rpm, dnf & co. is more evil when last I met them. I would try:
  1. Python3 based software.
  2. Python3 modules; pip3 does uninstall, btw.
  3. Python3 itself.


All times are GMT -5. The time now is 08:25 AM.