6 ms·
pushd /tmp && \ wget 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.8/tmux-1.8.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1364579710&use_m
by pkrumins 14y ago
pushd /tmp && \
wget 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.8/tmux-1.8.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1364579710&use_mirror=garr' && \
gunzip < tmux-1.8.tar.gz | tar -vx && \
cd tmux-1.8 && \
./configure --prefix=~/installs/tmux-1.8 && \
mkdir ~/installs && \
make && \
make install && \
popd
- paulsmith 14y agoA simple `tar -xvf` can replace the separate `gunzip` and `tar` processes.
- pkrumins 14y agoDo you mean `tar -xzvf`?
- atsaloli 14y agoYes, formally. You don't have to specify -z in GNU tar today, you can just say -x and it'll add -z or -j for you -- it figures out on the fly if the archive's been compressed and how. Very convenient.
- jlogsdon 14y agoYou can bypass writing the archive to disk, as well: pushd /tmp && \ curl 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.8/tmux-1.8.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1364579710&use_mirror=garr'| tar xvf && \ cd tmux-1.8 && \ ./configure --prefix=~/installs/tmux-1.8 && \ mkdir ~/installs && \ make && \ make install && \ popd
- nixbun 14y agoShouldn't you be using checkinstall instead of 'make install' to make removal of the package easier in the future?
- pkrumins 14y agoNot if you do local installs. You can remove the package simply by: rm -rf ~/installs/tmux-1.8
- andyl 14y agothanks @pkrumins - the download/compile/install cycle took about 30 seconds - the compiled executable seems to work perfectly.
- platz 14y agoinstead of make install, consider checkinstall or fpm so that you are properly integrated into ubuntu's native package manager (dpkg). Doing so will save you headaches when you want to uninstall tmux or upgrade later.