You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/lib/asciinema_web/templates/doc/installation.html.md

132 lines
3.1 KiB
Markdown

8 years ago
# Installation
There are several ways to get asciinema recorder:
- [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)
- [Installing on macOS](#installing-on-macos)
- [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)
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.
## Installing via Pip
{: #installing-via-pip}
8 years ago
asciinema is available on [PyPI](https://pypi.python.org/pypi/asciinema) and can
be installed with pip (Python 3 required):
sudo pip3 install asciinema
This is the universal installation method for all operating systems, which
always provides the latest version.
## Installing on Linux
{: #installing-on-linux}
8 years ago
### Arch Linux
pacman -S asciinema
8 years ago
### Debian
sudo apt-get install asciinema
### Fedora
For Fedora < 22:
sudo yum install asciinema
For Fedora >= 22:
sudo dnf install asciinema
### Gentoo Linux
8 years ago
emerge -av asciinema
8 years ago
### NixOS / Nix
8 years ago
nix-env -i asciinema
8 years ago
### openSUSE
8 years ago
zypper in asciinema
8 years ago
### Ubuntu
8 years ago
sudo apt-add-repository ppa:zanchey/asciinema
sudo apt-get update
sudo apt-get install asciinema
8 years ago
## Installing on Linux as snap
{: #installing-on-linux-as-snap}
8 years ago
Install asciinema in seconds on [Ubuntu and other snap supported Linux distributions](https://snapcraft.io/docs/core/install) with:
snap install asciinema --classic
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.
8 years ago
## Installing on macOS
{: #installing-on-macos}
8 years ago
### Homebrew
8 years ago
brew install asciinema
### MacPorts
8 years ago
sudo port selfupdate && sudo port install asciinema
### Nix
8 years ago
nix-env -i asciinema
8 years ago
## Installing on FreeBSD
{: #installing-on-freebsd}
8 years ago
### Ports
cd /usr/ports/textproc/asciinema && make install
### Packages
pkg install asciinema
## Installing on OpenBSD
{: #installing-on-openbsd}
pkg_add asciinema
## Running in Docker container
{: #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
8 years ago
When running it don't forget to allocate a pseudo-TTY (`-t`), keep STDIN open
(`-i`) and mount config directory volume (`-v`):
8 years ago
docker run --rm -ti -v "$HOME/.config/asciinema":/root/.config/asciinema asciinema/asciinema
8 years ago
## Running from source
{: #running-from-source}
8 years ago
If none of the above works for you (or you want to help with development) just
clone the repo and run latest version of asciinema straight from the master
branch:
8 years ago
git clone https://github.com/asciinema/asciinema.git
cd asciinema
python3 -m asciinema --version