docs/src/installation.md

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

93 lines · 3049 bytes

 1# Installation
 2
 3The YouTube TUI is *not* intended for Windows, pull requests to make it work are welcome.
 4
 5## Install from Crates.io (recommended)
 6
 7Crates.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>.
 8
 9To 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.
10
11Now, run the following command:
12
13```sh
14cargo install youtube-tui
15```
16
17> 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>.
18
19## AUR for Arch Linux (recommended)
20
21The YouTube TUI is available in the AUR <a href="https://aur.archlinux.org/packages/youtube-tui-git" target=_blank>*here*</a>.
22
23Use 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.
24
25```sh
26yay -S youtube-tui # lastest crates.io release, recommended
27yay -S youtube-tui-git # latest git version, potentially untested
28yay -S youtube-tui-full-bin # default binary (out of date)
29yay -S youtube-tui-nodefaults-bin # minimal binary (out of date)
30```
31## Installation on NixOS  (recommended)
32
33Add the following Nix code to your NixOS Configuration
34
35```nix 
36environment.systemPackages = [
37  pkgs.youtube-tui
38];
39```
40
41## Build from source
42
43Use the `cargo` command:
44
45```sh
46cargo install --git https://github.com/siriusmart/youtube-tui
47```
48
49### Confirm YouTube TUI has been installed
50
51Run the following command in terminal:
52
53```sh
54youtube-tui
55```
56
57If installed correctly, a TUI should be launched. Press `q` to close the TUI.
58
59## Features
60
61The TUI has features that can be enabled/disabled when compiling.
62
63```sh
64cargo install youtube-tui # install with all default features
65cargo install youtube-tui --no-default-features # install without any features enabled
66cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
67cargo install youtube-tui --no-default-features -F 'clipboard' -F 'sixel' # can install with multiple features by doing this
68cargo install youtube-tui --all-features # install with all features (even if not included in default)
69```
70
71### `halfblock` (default)
72
73Display images through HalfBlocks, work best in terminals with TrueColour support.
74
75### `sixel` (default)
76
77Display images with Sixels, allows the display of images at full definition. Not present on windows.
78
79Enabling this will also enable `halfblock`.
80
81Requires <a href="https://github.com/saitoha/libsixel" target=_blank>`libsixel`</a>.
82
83### `clipboard` (default)
84
85Allows clipboard pasting in commands and search bar.
86
87Requires <a href="https://xcb.freedesktop.org/" target=_blank>`libxcb`</a>.
88
89### `mpv` (default)
90
91Embedded audio player
92
93Requires <a href="https://mpv.io/" target=_blank>`mpv`</a> (libmpv) to be installed in your system.