Last active
February 16, 2018 17:28
-
-
Save j1n3l0/2ccc6b7f913c852f207068ffe42e9251 to your computer and use it in GitHub Desktop.
Install new versions of emacs and git on CentOS 6
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
#!/bin/sh -ex | |
# update the PATH ... | |
PATH="/usr/local/bin:${PATH}" | |
# install autoconf ... | |
cd /tmp | |
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz | |
tar xvfvz autoconf-2.69.tar.gz | |
cd autoconf-2.69 | |
./configure | |
make && make install | |
# install automake, ncurses-devel ... | |
yum install -y automake ncurses-devel | |
# install emacs ... | |
cd /tmp | |
wget "http://ftp.heanet.ie/mirrors/gnu/emacs/emacs-25.2.tar.gz" | |
tar xzf emacs-25.2.tar.gz | |
cd emacs-25.2 | |
./autogen.sh | |
./configure --with-x=no --without-makeinfo | |
make && make install |
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
#!/bin/sh -ex | |
# install the deps | |
yum install -y asciidoc gettext xmlto | |
# specify the version to download | |
version=${1:-2.16.1} | |
# download the source | |
cd /tmp/ | |
wget "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.gz" | |
tar xzf git-${version}.tar.gz | |
cd git-${version} | |
# configure make and install | |
make configure | |
./configure --prefix=/usr/local --with-perl="/opt/xt/xt-perl/bin/perl" --without-tcltk | |
make all doc | |
make install | |
# setup bash completion | |
wget -O "/etc/bash_completion.d/git-completion.bash" "https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment