Skip to content

Instantly share code, notes, and snippets.

@sirmagid
Created January 13, 2020 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirmagid/ee72383619c7d58ee39ae0efc32903dd to your computer and use it in GitHub Desktop.
Save sirmagid/ee72383619c7d58ee39ae0efc32903dd to your computer and use it in GitHub Desktop.
vi /usr/bin/yum
yum install nodejs
whereis python3.7
//$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar xf Python-3.*
zxvf for tgz
$ ./configure
make
make install
make altinstall
///////////////
Download (there may be newer releases on Python.org):
$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
Unzip
$ tar xf Python-3.*
$ cd Python-3.*
Prepare compilation
$ ./configure
Build
$ make
Install
$ make install
OR if you don't want to overwrite the python executable (safer, at least on some distros yum needs python to be 2.x, such as for RHEL6) - you can install python3.* as a concurrent instance to the system default with an altinstall:
$ make altinstall
Python-2.7
#!/usr/bin/pytho/usr/local/bin/python2.6
find / -type f -executable -name 'python2*'
////////////
vi /usr/bin/yum
//////////////////
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment