Created
January 13, 2020 15:14
-
-
Save sirmagid/ee72383619c7d58ee39ae0efc32903dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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