File: install — Documentation by YARD 0.9.44

# Installation

## Production

### rubygems.org (universal)

Personal (need `"$(gem env user_gemhome)/bin"` or `"$(ruby -e 'puts Gem.user_dir')/bin"` loaded in `$PATH` (can be done with `$(ruby -e 'puts Gem.user_dir')/bin"` in shell rc config file), ex: `/home/noraj/.gem/ruby/3.4.0/bin`)

    gem install --user unisec
    # or
    gem install --user-install unisec

Global (probably need high privileges unless inside a virtual environment like ASDM-VM)

    gem install unisec

Gem: unisec

### BlackArch

From the repository:

    pacman -S unisec

From git:

    blackman -i unisec

PKGBUILD: unisec

### ArchLinux

Manually:

    git clone https://aur.archlinux.org/unisec.git
    cd unisec
    makepkg -sic

With an AUR helper (Pacman wrappers), eg. pikaur:

    pikaur -S unisec

AUR: unisec

## Development

It's better to use ASDM-VM to have latests version of ruby and to avoid trashing your system ruby.

### rubygems.org

    gem install --development unisec

### git

Just replace `x.x.x` with the gem version you see after `gem build`.

    git clone https://github.com//unisec.git unisec
    cd unisec
    gem install bundler
    bundler install
    gem build unisec.gemspec
    gem install unisec-x.x.x.gem

Note: if an automatic installation is needed you can get the version with `$ gem build unisec.gemspec | grep Version | cut -d' ' -f4`.

### No install

Run the library in irb without installing the gem.

From local file:

    irb -Ilib -runisec

Same for the CLI tool:

    ruby -Ilib -runisec bin/unisec

## Shell completion

### zsh

Add in `~/.zshrc`

    source <(unisec completion zsh)

### bash

Add in `~/.bashrc`

    # bash 3.0+
    source <(unisec completion bash)
    # else
    eval "$(unisec completion bash)"