LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2019, 05:13 AM   #1
coolx
LQ Newbie
 
Registered: Aug 2011
Posts: 28

Rep: Reputation: Disabled
Uninstall a package completely(python)


Hi,
I want to uninstall python 2.7 on Redhat server but I don't now how to do it.

I run "yum list installed ""python"" command and it gives lots of package name. I uploaded the screenshot.

Which one is the kinda "root one", how can I know that?

And how can I uninstall python?
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	20
Size:	47.3 KB
ID:	30450  
 
Old 05-02-2019, 05:18 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
If you look at "man yum" this manual page will tell you what you need to type after "yum", being the word "erase".

You should also be paying for RHEL or use CentOS, which is almost identical.

EDIT: Forgot to say, yum itself is a python program, so it wouldn't be advisable to remove python 2.7 from your system. Why do you want to remove it?

Last edited by jsbjsb001; 05-02-2019 at 06:22 AM. Reason: forgot to mention the addition to post
 
1 members found this post helpful.
Old 05-02-2019, 07:15 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Out of interest, why are you contemplating removing Python 2.7?

Have you confirmed that no software at all on your machine uses it?
 
Old 05-02-2019, 08:00 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hydrurga View Post
...
Have you confirmed that no software at all on your machine uses it?
Python 2.7 comes from official CentOS repo's, therefore it would be used by yum. So if they did remove it, then yum would be pretty well screwed. That's why I mentioned the fact yum is a python program.
 
2 members found this post helpful.
Old 05-02-2019, 08:18 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by jsbjsb001 View Post
Python 2.7 comes from official CentOS repo's, therefore it would be used by yum. So if they did remove it, then yum would be pretty well screwed. That's why I mentioned the fact yum is a python program.
It depends on which version of RHEL the OP is running, but RHEL 8 uses Platform-Python for yum and other Python system tools:

https://developers.redhat.com/blog/2...hon-in-rhel-8/
 
Old 05-02-2019, 08:35 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hydrurga View Post
It depends on which version of RHEL the OP is running, but RHEL 8 uses Platform-Python for yum and other Python system tools:

https://developers.redhat.com/blog/2...hon-in-rhel-8/
If you look at their screenshot you'll notice "anaconda", which means Python is coming from the official RHEL repo's. I can't see any package there named "platform-python". To be clear: I'm not disputing what you're saying, but I somehow doubt they are using RHEL 8 based on their screenshot - but I could be wrong about that too.
 
1 members found this post helpful.
Old 05-02-2019, 10:15 AM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by jsbjsb001 View Post
I somehow doubt they are using RHEL 8 based on their screenshot - but I could be wrong about that too.
As RHEL 8 is still in BETA test phase, not released yet, I would be surprised too: you have to register as an offcial beta-tester to download it.
The latest RHEL release is 7.6
 
1 members found this post helpful.
Old 05-02-2019, 10:34 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by jsbjsb001 View Post
If you look at their screenshot you'll notice "anaconda", which means Python is coming from the official RHEL repo's. I can't see any package there named "platform-python". To be clear: I'm not disputing what you're saying, but I somehow doubt they are using RHEL 8 based on their screenshot - but I could be wrong about that too.
Quote:
Originally Posted by ehartman View Post
As RHEL 8 is still in BETA test phase, not released yet, I would be surprised too: you have to register as an offcial beta-tester to download it.
The latest RHEL release is 7.6
Cheers. I reckon I'll stick to commenting on Debian-derived distros.
 
Old 05-03-2019, 08:43 AM   #9
coolx
LQ Newbie
 
Registered: Aug 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks guys,
Actually there is no special reason for uninstalling python 2,7, just trying to understand how package logic works.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] How to completely uninstall a package byebyemrgates Linux - Newbie 3 03-02-2018 11:46 AM
how do I get apt-get to completely uninstall a package? muxman Debian 32 09-16-2016 05:54 AM
How can I uninstall a python package installed with python setup.py install? milomak Linux - Software 1 11-16-2009 09:22 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 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