This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vnstat:install:in_centos [23.01.2015 21:13] vergo created |
vnstat:install:in_centos [22.10.2022 15:30] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Disclaimer ===== | ===== Disclaimer ===== | ||
- | These instructions assume | + | These instructions assume |
- access to ' | - access to ' | ||
Line 9: | Line 9: | ||
- some basic Linux skills | - some basic Linux skills | ||
- commands aren't copypasted blindly | - commands aren't copypasted blindly | ||
- | - process is stopped in case of errors | + | - that the process is stopped in case of errors |
- | ===== CentOS 7 ===== | + | ===== CentOS 7 and later ===== |
Open a terminal and gain root permissions | Open a terminal and gain root permissions | ||
Line 25: | Line 25: | ||
Install needed development packages | Install needed development packages | ||
< | < | ||
- | yum install make gcc wget | + | yum install make gcc wget sqlite sqlite-devel |
</ | </ | ||
Line 31: | Line 31: | ||
< | < | ||
cd /usr/src | cd /usr/src | ||
- | wget http:// | + | wget http:// |
- | tar zxvf vnstat-1.13.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
</ | </ | ||
Compile and install the binaries | Compile and install the binaries | ||
< | < | ||
- | cd vnstat-1.13 | + | cd vnstat-2.10 |
- | make && make install | + | ./configure --prefix=/ |
</ | </ | ||
Line 68: | Line 68: | ||
Install needed development packages | Install needed development packages | ||
< | < | ||
- | yum install make gcc wget | + | yum install make gcc wget sqlite sqlite-devel |
</ | </ | ||
Line 74: | Line 74: | ||
< | < | ||
cd /usr/src | cd /usr/src | ||
- | wget http:// | + | wget http:// |
- | tar zxvf vnstat-1.13.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
</ | </ | ||
Compile and install the binaries | Compile and install the binaries | ||
< | < | ||
- | cd vnstat-1.13 | + | cd vnstat-2.10 |
- | make && make install | + | ./configure --prefix=/ |
</ | </ | ||