Required Software Packages, Tools, and Files
Installing Packages
$ sudo su - $ yum update $ yum groupinstall -y "development tools" $ yum install -y \ lsof \ wget \ vim-enhanced \ words \ which $ exitConfiguring Git
$ git config --global user.name "Your Name" $ git config --global user.email "your_email@example.com"Customizing Bash
$ curl https://raw.githubusercontent.com/linuxacademy/content-python3-sysadmin/master/helpers/bashrc -o ~/.bashrcCustomizing Vim
$ curl https://raw.githubusercontent.com/linuxacademy/content-python3-sysadmin/master/helpers/vimrc -o ~/.vimrcDownload and Install Python 3 from Source
$ sudo su - [root] $ yum groupinstall -y "development tools" [root] $ yum install -y \ libffi-devel \ zlib-devel \ bzip2-devel \ openssl-devel \ ncurses-devel \ sqlite-devel \ readline-devel \ tk-devel \ gdbm-devel \ db4-devel \ libpcap-devel \ xz-devel \ expat-devel [root ] $ cd /usr/src [root ] $ wget http://python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz [root ] $ tar xf Python-3.6.4.tar.xz [root ] $ cd Python-3.6.4 [root ] $ ./configure --enable-optimizations [root ] $ make altinstall [root ] $ exitEnsure that secure_path in /etc/sudoers file includes /usr/local/bin. The line should look something like this:
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/binUpgrade Pip (Might not be Necessary)
$ sudo pip3.6 install --upgrade pip
评论
发表评论