docs/src/installation.md

v0.6.2
youtube-tui/docs/src/installation.md rendered · source · history · blame · raw

75 lines · 2597 bytes

 1# Installation
 2
 3It's about download (or building) the binary and putting them in an easily accessible location (like `/bin/`).
 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 avaliable <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 avaliable 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-git # replace `yay` with your AUR helper
29yay -S youtube-tui-full-bin # requires libsixel
30yay -S youtube-tui-nodefaults-bin
31```
32
33## Build from source
34
35Use the `cargo` command:
36
37```sh
38cargo install --git https://github.com/siriusmart/youtube-tui
39```
40
41### Confirm YouTube TUI has been installed
42
43Run the following command in terminal:
44
45```sh
46youtube-tui
47```
48
49If installed correctly, a TUI should be launched. Press `q` to close the TUI.
50
51## Features
52
53The TUI has features that can be enabled/disabled when compiling.
54
55```sh
56cargo install youtube-tui # install with all default features
57cargo install youtube-tui --no-default-features # install without any features enabled
58cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
59cargo install youtube-tui --no-default-features -F 'halfblock' -F 'sixel' # can install with multiple features by doing this
60cargo install youtube-tui --all-features # install with all features (even if not included in default)
61```
62
63### `halfblock` (default)
64
65Display images through HalfBlocks, work best in terminals with TrueColour support.
66
67### `sixel` (default)
68
69Display images with Sixels, allows the display of images at full definition. Not present on windows.
70
71Enabling this will also enable `halfblock`.
72
73Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>.
74
75> `sixel` and `halfblock` does not compile on Windows.