How to check go lang installed or not in fedora 37?

How to check go lang installed or not in fedora 37 \ RHEL 8 / Centos 8

[root@fedora ~]# go version

command not found error raised if not installed,

bash: go: command not found...
Packages providing this file are:
'gcc-go'
'Golang-bin'

Also we can check the path /usr/local to know installed or not,

[root@fedora ~]# ls /usr/local/

output:

bin  etc  games  include  lib  lib64  libexec  sbin  share  src

if go lang is not installed, no go directory found.

if go lang is installed,

[root@fedora ~]# go version

Output:

go version go1.20.1 linux/amd64


also check ls command output of path /usr/local

[root@fedora ~]# ls /usr/local/

output:

bin  etc  games  go  include  lib  lib64  libexec  sbin  share  src




Python installation

Privacy Policy  |  Copyrightcopyright symbol2020 - All Rights Reserved.  |  Contact us   |  Report website issues in Github   |  Facebook page   |  Google+ page

Email Facebook Google LinkedIn Twitter
^