docs/src/installation.md
74 lines · 2636 bytes
1# Installation
2
3> Currently YouTube TUI requires `libxcb`, which should come preinstalled in most Linux system.
4
5The YouTube TUI is *not* tested for Windows.
6
7## Install from Crates.io (recommended)
8
9Crates.io is a repository for programs written in Rust, and the YouTube TUI is available <a href="https://crates.io/crates/youtube-tui" target=_blank>*there*</a>.
10
11To install using this method, you will need `rustc` and `cargo` present. <a href="https://www.rust-lang.org/tools/install" target=_blank>*Here*</a>'s a tutorial on how to get them.
12
13Now, run the following command:
14
15```sh
16cargo install youtube-tui
17```
18
19> To check and update all programs installed from Crates.io, you can use CLI tools like <a href="https://crates.io/crates/cargo-update" target=_blank>*cargo-update*</a>.
20
21## AUR for Arch Linux (recommended)
22
23The YouTube TUI is available in the AUR <a href="https://aur.archlinux.org/packages/youtube-tui-git" target=_blank>*here*</a>.
24
25Use an <a href="https://aur.archlinux.org" target=_blank>AUR</a> helper like <a href="https://aur.archlinux.org/packages/yay" target=_blank>`yay`</a> to install.
26
27```sh
28yay -S youtube-tui # lastest crates.io release, recommended
29yay -S youtube-tui-git # latest git version, potentially untested
30yay -S youtube-tui-full-bin # default binary (out of date)
31yay -S youtube-tui-nodefaults-bin # minimal binary (out of date)
32```
33
34## Build from source
35
36Use the `cargo` command:
37
38```sh
39cargo install --git https://github.com/siriusmart/youtube-tui
40```
41
42### Confirm YouTube TUI has been installed
43
44Run the following command in terminal:
45
46```sh
47youtube-tui
48```
49
50If installed correctly, a TUI should be launched. Press `q` to close the TUI.
51
52## Features
53
54The TUI has features that can be enabled/disabled when compiling.
55
56```sh
57cargo install youtube-tui # install with all default features
58cargo install youtube-tui --no-default-features # install without any features enabled
59cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
60cargo install youtube-tui --no-default-features -F 'halfblock' -F 'sixel' # can install with multiple features by doing this
61cargo install youtube-tui --all-features # install with all features (even if not included in default)
62```
63
64### `halfblock` (default)
65
66Display images through HalfBlocks, work best in terminals with TrueColour support.
67
68### `sixel` (default)
69
70Display images with Sixels, allows the display of images at full definition. Not present on windows.
71
72Enabling this will also enable `halfblock`.
73
74Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>.