Centos 7 에서 최신버전 tmux 설치

cuudev·2022년 12월 5일
0

Centos 7에서 yum을 통해 tmux를 설치했더니 버전이 1.8이다.

그래서 소스코드로 빌드해서 설치하는 법을 기록해 둔다.

Install tmux

Download source code

우선 공식 repository에서 소스코드를 받는다. 아래 링크에서 압축된 파일을 받아도 되고, git명령어를 통해 받아도 된다.

https://github.com/tmux/tmux/releases

$ wget https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz
$ tar xvfz tmux-3.3a.tar.gz
$ cd tmux-3.3a/
$ git clone -b 3.3a https://github.com/tmux/tmux.git
$ cd tmux/

Install depandencies

$ sudo yum install libevent-devel ncurses-devel

Configure

$ ./configure

Build

$ make

Install tmux

$ sudo make install

Check tmux version

$ tmux -V
profile
자꾸 까먹어서...

0개의 댓글