Skip to content

Installation

Keith Peters edited this page Nov 11, 2023 · 11 revisions

Arch Linux:

Install via whatever AUR helper you use. e.g.:

yay -S version

or

paru -S version

or

pacman install version

Install scripts

First, download or clone this repository to your computer. Then choose one of the options below.

Install:

This will install version to /usr/local/bin/ and the man page to /usr/local/share/man/man1

Clone or download this repo, then...

cd version
sudo ./install.sh

Uninstall:

This will delete version from /usr/local/bin/ and delete the man page at /usr/local/share/man/man1/version.1.gz

cd version
sudo ./uninstall.sh

Manual Install

First, download or clone this repository to your computer. Then choose one of the options below.

Use this if you want to install version to somewhere other than /usr/local/bin/.

  • Place the file version in a directory that is in your PATH variable:

    • To see what's in your PATH variable on Linux, open a terminal and type

      echo $PATH
      
    • The different directories are separated by :. Either move version to one of these, or append another directory to PATH like this (assuming you are using bash):

      export PATH=/your/new/directory:$PATH
      

      When using fish, use this command instead:

      set PATH "$PATH:/your/new/directory"
      

      Put the appropriate line in your ~/.bashrc file to make this change persistent. When you are using zsh, put it in ~/.zshrc instead. For fish users, the right file is ~/.config/fish/config.fish.

  • Now, you are ready to use version wherever you are in the filesystem!