Skip to content

Instantly share code, notes, and snippets.

@houtianze
Last active August 29, 2020 22:18
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 houtianze/7ba320bc250589fdd35ad4082e52133f to your computer and use it in GitHub Desktop.
Save houtianze/7ba320bc250589fdd35ad4082e52133f to your computer and use it in GitHub Desktop.
Build xsel on CentOS
#!/bin/sh
set -e
# ================================================================
# << Update >>
# Running the following is enough, no need to build yourself
# sudo yum install epel-release.noarch
# sudo yum install xsel
# ================================================================
# simply run the following in your terminal
# curl -L https://git.io/XClipYum | sh
# WARNING: a directory name 'xclip' will be created in your current directory
# simply run the following in your terminal
# curl -L https://git.io/XSelYum | sh
# WARNING: In the current directory, a file named "xsel-1.2.0" will be downloaded
# and directory name 'xsel-1.2.0' will be created
# http://superuser.com/a/410740/135952
yum install -y automake autoconf git libtool
curl -OL http://www.vergenet.net/~conrad/software/xsel/download/xsel-1.2.0.tar.gz
tar -xzf xsel-1.2.0.tar.gz
cd xsel-1.2.0
./autogen.sh
./configure
make
make check
sudo make install
#make distclean
cd ..
set +e
@AKurilin
Copy link

Thanks for writing this up, very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment