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

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

uname

Print details about the current machine and the operating system running on it.
Note: for additional information about the operating system, try the `lsb_release` command.

Maintainer: Michael Stone



Section: utils

Install uname

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

Print details about the current machine and the operating system running on it. Note: for additional information about the operating system, try the `lsb_release` command.

How to use uname?

Below are few example commands for uname that you can use in the terminal.

Print hardware-related information: machine and processor:
uname -mpClick to copy
Print software-related information: operating system, release number, and version:
uname -srvClick to copy
Print the nodename (hostname) of the system:
uname -nClick to copy
Print all available system information (hardware, software, nodename):
uname -aClick to copy
Install the latest version of uname in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the uname just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of uname from the respository and install it in your computer/server.