LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2020, 09:50 AM   #1
sabsac
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Rep: Reputation: Disabled
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.
 
Old 09-16-2020, 09:52 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
If you installed it into /opt, then just delete it with "rm -rf".
 
1 members found this post helpful.
Old 09-16-2020, 09:55 AM   #3
sabsac
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
and the dependencies?
 
Old 09-16-2020, 09:56 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You downloaded it with wget and untarred it. What dependencies are you referring to?
 
Old 09-16-2020, 09:59 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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.
 
1 members found this post helpful.
Old 09-16-2020, 10:00 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by pan64 View Post
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.
 
Old 09-17-2020, 01:27 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On uninstall, does it make more sense to remove or remove completely? annadane Debian 6 01-30-2017 02:47 PM
aptitude shows lots of unresolved dependencies and lots of packages to remove rey Linux - Software 6 06-04-2013 10:01 PM
yum remove python (and 630+ dependencies--oops!) griffey Linux - Newbie 6 05-17-2012 06:18 AM
Installation of packages in RHEL-5.3 using X windows menu Add/Remove packages akluthra Linux - Newbie 2 09-21-2010 05:34 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration