> # yum install python34I already have epel installed. If it breaks something is it as simple as yum erase python34 to restore everything back to normal? On Thu, Mar 23, 2017 at 6:27 PM, Christian, Mark <mark.christian at intel.com> wrote:> On Thu, 2017-03-23 at 18:16 -0500, Matt wrote: >> Is there a way to install Python 3.x on Centos 7.x without breaking >> anything that depends on an older version of Python? This server is a >> minimal Centos 7 install that primarily runs a simple LAMP setup. > Yes. > # yum install python34 > > >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
On Fri, 2017-03-24 at 08:52 -0500, Matt wrote:> > # yum install python34 > > I already have epel installed. If it breaks something is it as simple > as yum erase python34 to restore everything back to normal? >If it's in epel it will have been tested with RHEL/CentOS so shouldn't break anything. But yes, a yum erase should remove it. P.
On 03/24/2017 06:52 AM, Matt wrote:> I already have epel installed. If it breaks something is it as simple > as yum erase python34 to restore everything back to normal?Consider using "yum history undo" or "yum history revert" to remove dependencies as well.
On 3/24/2017 6:52 AM, Matt wrote:>> # yum install python34 > I already have epel installed. If it breaks something is it as simple > as yum erase python34 to restore everything back to normal?be pretty hard to break anything, it installs... /usr/bin/python3 /usr/bin/python3.4 and puts all the runtime libs in /usr/lib64/python3.4 the default C7 python is... /usr/bin/python /usr/bin/python2 /usr/bin/python2.7 with libraries in /usr/lib64/python2.7 so no overlap at all. if you want python 3.4, you have to invoke it explicitly. -- john r pierce, recycling bits in santa cruz
On a related note I need SNMP support to do snmpget and snmpset to devices with Python3. Is there an easy way to get that without breaking anything also? On Fri, Mar 24, 2017 at 1:04 PM, John R Pierce <pierce at hogranch.com> wrote:> On 3/24/2017 6:52 AM, Matt wrote: >>> >>> # yum install python34 >> >> I already have epel installed. If it breaks something is it as simple >> as yum erase python34 to restore everything back to normal? > > > be pretty hard to break anything, it installs... > > /usr/bin/python3 > /usr/bin/python3.4 > > and puts all the runtime libs in /usr/lib64/python3.4 > > the default C7 python is... > > /usr/bin/python > /usr/bin/python2 > /usr/bin/python2.7 > > with libraries in /usr/lib64/python2.7 > > so no overlap at all. if you want python 3.4, you have to invoke it > explicitly. > > > > -- > john r pierce, recycling bits in santa cruz > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos