CentOS 6: Install byobu/tmux

This article will describe installing byobu and tmux.

1 Install package for rpmbuild and yum-builddep

Install package for rpmbuild and yum-builddep.

$ sudo yum groupinstall -y "Development tools"
$ sudo yum install -y yum-utils rpm-build rpmdevtools

2 Install libevent-2.0

CentOS 6 does not have tmux and need to build Fedora 22's tmux. Fedora 22's tmux needs libevent-2.0 but CentOS 6's libevent is 1.4.

Install libevent-2.0 from Fedora 22's src.rpm.

$ FEDORA=http://archives.fedoraproject.org/pub/archive/fedora
$ SRPMS=${FEDORA}/linux/releases/22/Everything/source/SRPMS
$ sudo yum remove -y `rpm -qa | grep libevent`
$ sudo yum install -y openssl-devel
$ wget -q ${SRPMS}/l/libevent-2.0.21-6.fc22.src.rpm
$ rpm -i libevent-2.0.21-6.fc22.src.rpm
$ sudo yum-builddep -y ~/rpmbuild/SPECS/libevent.spec
$ rpmbuild --rebuild libevent-2.0.21-6.fc22.src.rpm
$ sudo yum localinstall -y ~/rpmbuild/RPMS/x86_64/libevent-*.rpm

3 Install tmux

Install tmux from Fedora 22's src.rpm.

$ wget -q ${SRPMS}/t/tmux-1.9a-5.fc22.src.rpm
$ rpm -i tmux-1.9a-5.fc22.src.rpm
$ sudo yum-builddep -y ~/rpmbuild/SPECS/tmux.spec
$ rpmbuild --rebuild tmux-1.9a-5.fc22.src.rpm
$ sudo yum localinstall -y ~/rpmbuild/RPMS/x86_64/tmux-*.rpm

4 byobuのインストール

Install byobu from Fedora 22's src.rpm.

$ wget -q ${SRPMS}/b/byobu-5.92-1.fc22.src.rpm
$ rpm -i byobu-5.92-1.fc22.src.rpm
$ sudo yum-builddep -y ~/rpmbuild/SPECS/byobu.spec
$ rpmbuild --rebuild byobu-5.92-1.fc22.src.rpm
$ sudo yum localinstall -y ~/rpmbuild/RPMS/noarch/byobu-*.rpm