gitlab.com/pidrakin/dotfiles-cli@v1.7.5/INSTALL.md (about)

     1  # Install
     2  
     3  ## Easy
     4  
     5  ```shell
     6  curl -fsSL https://dotfiles.pidrak.in | sudo sh -
     7  ```
     8  
     9  Usage:
    10  
    11  ```shell
    12  curl -fsSL https://dotfiles.pidrak.in | sudo sh -s -- --help
    13  
    14  install.sh
    15  
    16  Installer for dotfiles CLI
    17  
    18  Usage:
    19  install.sh [-h|--help]
    20  install.sh [-s|--silent] [-n|--no-package] [-v|--version VERSION]
    21  
    22  Options:
    23  -s, --silent           Do not print any messages
    24  -n, --no-package       Do not install via package manager
    25  -v, --version          Install specific version
    26  ```
    27  
    28  ## Set Architecture
    29  
    30  If `uname` is unvailable
    31  
    32  ```shell
    33  # for x86_64
    34  export ARCH=amd64
    35  # for i386
    36  export ARCH=i386
    37  # for ARM
    38  export ARCH=arm64
    39  ```
    40  
    41  ## Compile
    42  
    43  ```shell
    44  git clone https://gitlab.com/pidrakin/dotfiles-cli.git
    45  cd dotfiles-cli
    46  go build -o /usr/local/bin/dotfiles
    47  ```
    48  
    49  ## Linux
    50  
    51  ```shell
    52  curl -fsSL https://dotfiles.pidrak.in/$(uname -m).tar.gz | sudo tar -xz -C /usr/local/bin/
    53  ```
    54  
    55  ## Alpine
    56  
    57  ```shell
    58  curl -fsSL -o dotfiles.apk https://dotfiles.pidrak.in/$(uname -m).apk
    59  apk add --no-cache --allow-untrusted dotfiles.apk
    60  ```
    61  
    62  ## Debian/Ubuntu
    63  
    64  ```shell
    65  curl -fsSL -o dotfiles.deb https://dotfiles.pidrak.in/$(uname -m).deb
    66  dpkg -i dotfiles.deb
    67  ```
    68  
    69  ```shell
    70  apt update
    71  apt install -y ca-certificates gpg
    72  curl -fsSL https://fury.pidrak.in/apt/gpg.key | gpg --dearmor > /usr/share/keyrings/pidrakin-keyring.gpg
    73  echo "deb [signed-by=/usr/share/keyrings/pidrakin-keyring.gpg] https://fury.pidrak.in/apt/ /" > /etc/apt/sources.list.d/pidrakin.list
    74  apt update
    75  apt install -y dotfiles
    76  ```
    77  
    78  ## Fedora/CentOS/RHEL
    79  
    80  ```shell
    81  dnf install https://dotfiles.pidrak.in/$(uname -m).rpm
    82  ```
    83  
    84  ```shell
    85  curl -fsSL -o /etc/pki/rpm-gpg/RPM-GPG-KEY-pidrakin https://fury.pidrak.in/rpm/gpg.key
    86  cat > /etc/yum.repos.d/pidrakin.repo <<EOL
    87  [pidrakin]
    88  name=Pidrakin Repo
    89  baseurl=https://fury.pidrak.in/yum/
    90  enabled=1
    91  gpgcheck=0
    92  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pidrakin
    93  EOL
    94  dnf makecache
    95  dnf install -y dotfiles
    96  ```
    97  
    98  ## Mac
    99  
   100  ### cURL
   101  
   102  ```shell
   103  curl -fsSL https://dotfiles.pidrak.in/mac-$(uname -m).tar.gz | sudo tar -xz -C /usr/local/bin/
   104  ```
   105  
   106  ### Homebrew
   107  
   108  ```shell
   109  brew tap pidrakin/dotfiles
   110  brew install dotfiles
   111  ```
   112  
   113  ## Container
   114  
   115  ```shell
   116  podman pull registry.gitlab.com/pidrakin/dotfiles-cli:latest
   117  ```