How to install GoAccess on Ubuntu Linux server

Fig.01: How to install GoAccess on Ubuntu Linux server

Fig.01: How to install GoAccess on Ubuntu Linux server

You can easily install GoAccess on Ubuntu Linux 16.04 LTS server or desktop system or above by typing the apt-get command as follows:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install goaccess

Sample outputs:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libglib2.0-0 libglib2.0-data shared-mime-info xdg-user-dirs
The following NEW packages will be installed:
  goaccess libglib2.0-0 libglib2.0-data shared-mime-info xdg-user-dirs
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 1808 kB of archives.
After this operation, 7175 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu1 [1119 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-data all 2.48.2-0ubuntu1 [132 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 shared-mime-info amd64 1.5-2ubuntu0.1 [405 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 xdg-user-dirs amd64 0.15-2ubuntu6 [61.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 goaccess amd64 1:0.9.4-1build1 [90.2 kB]
Fetched 1808 kB in 1s (1807 kB/s)   
Selecting previously unselected package libglib2.0-0:amd64.
(Reading database ... 17359 files and directories currently installed.)
Preparing to unpack .../libglib2.0-0_2.48.2-0ubuntu1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../libglib2.0-data_2.48.2-0ubuntu1_all.deb ...
Unpacking libglib2.0-data (2.48.2-0ubuntu1) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../shared-mime-info_1.5-2ubuntu0.1_amd64.deb ...
Unpacking shared-mime-info (1.5-2ubuntu0.1) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../xdg-user-dirs_0.15-2ubuntu6_amd64.deb ...
Unpacking xdg-user-dirs (0.15-2ubuntu6) ...
Selecting previously unselected package goaccess.
Preparing to unpack .../goaccess_1%3a0.9.4-1build1_amd64.deb ...
Unpacking goaccess (1:0.9.4-1build1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...
No schema files found: doing nothing.
Setting up libglib2.0-data (2.48.2-0ubuntu1) ...
Setting up shared-mime-info (1.5-2ubuntu0.1) ...
Setting up xdg-user-dirs (0.15-2ubuntu6) ...
Setting up goaccess (1:0.9.4-1build1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...


Now all you have to do is type the following command to see the stats on screen:
$ goaccess -f /path/to/apache/nginx/access.log

Examples and usage: How to install GoAccess web log analyzer with Nginx on Linux or Unix