Http://sebastien.godard.pagesperso-orange.fr/download.html
1 |
# wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz |
Download the sysstat package
Decompress the downloaded package, go to the directory, and start compilation and installation.
1 2 |
# tar -xvf sysstat-11.0.0.tar.gz # cd sysstat-11.0.0/ |
Here, you have two methods for compilation and installation:
A)First, you can use iconfig (this will give you great flexibility, you can select/Enter custom values for each parameter)
Sysstat iconfig command
B)Second, you can use standard configure to define all options in the command line. You can run the./configure-help command to list the limited options supported by this command.
Cofigure-help of stsstat
Here, we use the standard./configure command to compile and install the sysstat toolkit.
1 2 3 |
# ./configure # make # make install |
Configure sysstat in Linux
After compilation, we will see some similar output. Run the following command to view the version of sysstat.
1 2 3 4 |
# mpstat -V sysstat version 11.0.0 (C) Sebastien Godard (sysstat <at> orange.fr) |
Update sysstat in LinuxBy default, sysstat uses "/usr/local" as its directory prefix. Therefore, all binary data/tools are installed in the "/usr/local/bin" directory. If your system has installed the sysstat toolkit, the binary data/tool mentioned above may be in the "/usr/bin" directory.
Because the "$ PATH" variable does not contain the "/usr/local/bin" PATH, you may fail to update it. Therefore, make sure that the "/usr/local/bin" PATH is included in the "$ PATH" environment variable, or before the update, when compiling and uninstalling the old version, set the-prefix option to "/usr ".
1 2 |
# yum remove sysstat [On RedHat based System] # apt-get remove sysstat [On Debian based System] |
1 2 3 |
# ./configure --prefix=/usr # make # make install |
Now, use the '-V' option of the 'mpstat' command to view the updated version.
1 2 3 4 |
# mpstat -V sysstat version 11.0.0 (C) Sebastien Godard (sysstat <at> orange.fr) |