How To Install Getopts On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Getopts On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

getopts

GNU Bourne Again SHell

Maintainer: Matthias Klose



Section: shells

Install getopts

  • Debian apt-get install bash Click to copy
  • Ubuntu apt-get install bash Click to copy
  • Alpine OS apk add bash Click to copy
  • Arch Linux pacman -S bash Click to copy
  • Kali Linux apt-get install bash Click to copy
  • CentOS yum install bash Click to copy
  • Fedora dnf install bash Click to copy
  • Raspbian apt-get install bash Click to copy
  • macOS brew install bash Click to copy

bash

GNU Bourne Again SHell

Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). Bash is ultimately intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2). The Programmable Completion Code, by Ian Macdonald, is now found in the bash-completion package.

Installation of latest getopts command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.