RHEL/CentOS 5 git, vim, wget, curl installation

RHEL/CentOS 5 git, vim, wget, curl update & installation

yum repo update
http://kkckc.tistory.com/185

wget --no-check-certificate https://www.openssl.org/source/openssl-1.0.2n.tar.gz
tar xf openssl-1.0.2n.tar.gz
cd openssl-1.0.2n
./config -fpic shared
make
make install

wget https://curl.haxx.se/download/curl-7.57.0.tar.gz
tar xf curl-7.57.0.tar.gz
cd curl-7.57.0
./configure --with-ssl=/usr/local/ssl --disable-ldap
make
make install

wget http://ftp.gnu.org/gnu/wget/wget-1.19.2.tar.gz
tar xf wget-1.19.2.tar.gz
cd wget-1.19.2
./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl --prefix=/usr/local
make
make install

# ref: https://www.rpmfind.net/linux/rpm2html/search.php?query=rpmforge-release
rpm -Uvh https://www.rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
yum install git

yum install vim-enhanced

Python 2.x 최신 버전 설치

yum install gcc gdbm-devel readline-devel ncurses-devel zlib-devel bzip2-devel sqlite-devel db4-devel openssl-devel tk-devel bluez-libs-devel

wget http://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
tar xf Python-2.7.14.tgz
cd Python-2.7.14
./configure --prefix=/usr/local/python27 --enable-shared --enable-optimizations
make altinstall
echo "/usr/local/python27/lib" >> /etc/ld.so.conf.d/usr-python27.conf

/sbin/ldconfig
ln -s /usr/local/python27/bin/python2.7 /usr/bin/python2.7

cd ..
wget https://pypi.python.org/packages/69/56/f0f52281b5175e3d9ca8623dadbc3b684e66350ea9e0006736194b265e99/setuptools-38.2.4.zip#md5=e8e05d4f8162c9341e1089c80f742f64
wget --no-check-certificate https://pypi.python.org/packages/69/56/f0f52281b5175e3d9ca8623dadbc3b684e66350ea9e0006736194b265e99/setuptools-38.2.4.zip#md5=e8e05d4f8162c9341e1089c80f742f64
unzip setuptools-38.2.4.zip
cd setuptools-38.2.4
python2.7 setup.py install --prefix=/usr/local/python27/

/usr/local/python27/bin/easy_install virtualenv

cd ..
curl -o pip-9.0.1.tar.gz https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar xf pip-9.0.1.tar.gz
cd pip-9.0.1
python2.7 setup.py install --prefix=/usr/local/python27/

이런식으로 하면 업데이트 및 설치가 가능하다.

Show Comments