Skip to content

Detect name and version of the distro, architecture, package manager and so on.

Notifications You must be signed in to change notification settings

Etersoft/distro_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distro_info

Use distro_info in your scripts when you need a linux command to check distribution (distro) name and version.

Just run ./distro_info -e

or -h to get all supported options.

$ ./distro_info
distro_info v20201010 : Copyright © 2007-2020 Etersoft
==== Total system information:
Pretty distro name (--pretty): ALT Sisyphus Sisyphus (unstable) (sisyphus)
 Distro name and version (-e): ALTLinux/Sisyphus
        Packaging system (-p): rpm
 Running service manager (-y): sysvinit
          Virtualization (-i): kvm
               CPU Cores (-c): 16
        CPU Architecture (-a): x86_64
 CPU norm register size  (-b): 64
 System memory size (MB) (-m): 23659
            Base OS name (-o): linux
Build system distro name (-s): alt
Build system vendor name (-n): alt
$ hostnamectl
   Static hostname: builder64.office.etersoft.ru
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f93eda9fe7e07dae19e7defc493d6e57
           Boot ID: 5753f83f6dfa4fdf949e8e33cde1f2d9
    Virtualization: kvm
  Operating System: ALT Regular
       CPE OS Name: cpe:/o:alt:sisyphus:20191026
            Kernel: Linux 4.19.81-std-def-alt2
      Architecture: x86-64

Simular projects

  • /etc/os-release (systemd)
  • lsb_release -a (lsb-release)

Links

About

Detect name and version of the distro, architecture, package manager and so on.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages