2015-03-31 11:07:22 +00:00
< % content_for(:title, 'Installation') %>
# Installation
2017-05-02 13:36:57 +00:00
There are several ways to get asciinema recorder:
2017-04-28 10:56:16 +00:00
2017-05-02 13:36:57 +00:00
- [Installing via Pip ](#installing-via-pip )
- [Installing on Linux ](#installing-on-linux )
- [Installing on Linux as snap ](#installing-on-linux-as-snap ) (universal Linux package)
2017-05-02 13:40:55 +00:00
- [Installing on macOS ](#installing-on-macos )
2017-05-02 13:36:57 +00:00
- [Installing on FreeBSD ](#installing-on-freebsd )
- [Installing on OpenBSD ](#installing-on-openbsd )
- [Running in Docker container ](#running-in-docker-container )
- [Running from source ](#running-from-source )
2017-04-28 10:56:16 +00:00
2017-05-02 13:36:57 +00:00
If you use other operating system and you can build a native package for it then
don't hesitate, do it and let us know. We have [Github
issue](https://github.com/asciinema/asciinema/issues/116) where we track new
releases and packaging progress.
2017-04-28 10:56:16 +00:00
2017-05-02 13:36:57 +00:00
## Installing via Pip
2016-07-13 11:22:54 +00:00
asciinema is available on [PyPI ](https://pypi.python.org/pypi/asciinema ) and can
be installed with pip (Python 3 required):
sudo pip3 install asciinema
2017-05-02 13:36:57 +00:00
This is the universal installation method for all operating systems, which
always provides the latest version.
2017-04-12 11:01:56 +00:00
2017-05-02 13:36:57 +00:00
## Installing on Linux
2015-03-31 11:07:22 +00:00
### Arch Linux
2017-01-24 21:48:20 +00:00
pacman -S asciinema
2015-03-31 11:07:22 +00:00
2015-09-19 09:07:35 +00:00
### Debian
sudo apt-get install asciinema
2015-03-31 11:07:22 +00:00
### Fedora
2016-05-22 19:44:14 +00:00
For Fedora < 22:
2015-03-31 11:07:22 +00:00
sudo yum install asciinema
2016-05-22 19:44:14 +00:00
For Fedora >= 22:
sudo dnf install asciinema
2015-03-31 11:07:22 +00:00
### Gentoo Linux
2016-08-21 23:19:00 +00:00
emerge -av asciinema
2015-03-31 11:07:22 +00:00
2015-08-07 09:09:17 +00:00
### NixOS / Nix
2015-06-23 07:48:06 +00:00
2017-04-24 10:44:23 +00:00
nix-env -i asciinema
2015-06-23 07:48:06 +00:00
2017-04-10 14:19:35 +00:00
### openSUSE
zypper in asciinema
2017-05-02 13:36:57 +00:00
### Ubuntu
sudo apt-add-repository ppa:zanchey/asciinema
sudo apt-get update
sudo apt-get install asciinema
## Installing on Linux as snap
Install asciinema in seconds on [Ubuntu and other snap supported Linux distributions ](https://snapcraft.io/docs/core/install ) with:
snap install asciinema --classic
2016-07-13 11:24:05 +00:00
2017-05-02 13:36:57 +00:00
Installing a snap is very quick. Snaps contain all necessary dependencies required to run. The snap will get automatically updated when a new version is pushed to the store.
## Installing on macOS
### Homebrew
2016-07-13 11:24:05 +00:00
< %= render 'install_homebrew' %>
2017-05-02 13:36:57 +00:00
### MacPorts
2016-07-13 11:24:05 +00:00
sudo port selfupdate & & sudo port install asciinema
2017-05-02 13:36:57 +00:00
### Nix
2016-07-13 11:24:05 +00:00
2017-05-02 12:34:19 +00:00
nix-env -i asciinema
2016-07-13 11:24:05 +00:00
2017-05-02 13:36:57 +00:00
## Installing on FreeBSD
2015-03-31 11:07:22 +00:00
2017-05-02 13:36:57 +00:00
### Ports
2015-03-31 11:07:22 +00:00
2017-05-02 13:36:57 +00:00
cd /usr/ports/textproc/asciinema & & make install
2015-03-31 11:07:22 +00:00
2017-05-02 13:36:57 +00:00
### Packages
pkg install asciinema
## Installing on OpenBSD
pkg_add asciinema
## Running in Docker container
asciinema Docker image is based on Ubuntu 16.04 and has the latest version of
asciinema recorder pre-installed.
docker pull asciinema/asciinema
When running it don't forget to allocate a pseudo-TTY (`-t`), keep STDIN open
(`-i`) and mount config directory volume (`-v`):
docker run --rm -ti -v "$HOME/.config/asciinema":/root/.config/asciinema asciinema/asciinema
2015-03-31 11:07:22 +00:00
2017-05-02 13:36:57 +00:00
## Running from source
2015-06-23 21:41:07 +00:00
2016-07-13 11:22:54 +00:00
If none of the above works for you (or you want to help with development) just
2017-05-02 13:36:57 +00:00
clone the repo and run latest version of asciinema straight from the master
branch:
2015-06-23 21:41:07 +00:00
2016-07-13 11:22:54 +00:00
git clone https://github.com/asciinema/asciinema.git
cd asciinema
python3 -m asciinema --version