This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vnstat:install:in_centos [22.12.2015 00:39] 127.0.0.1 external edit |
vnstat:install:in_centos [22.10.2022 15:30] (current) |
||
---|---|---|---|
Line 11: | Line 11: | ||
- that the 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.15.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
</ | </ | ||
Compile and install the binaries | Compile and install the binaries | ||
< | < | ||
- | cd vnstat-1.15 | + | 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.15.tar.gz | + | tar zxvf vnstat-2.10.tar.gz |
</ | </ | ||
Compile and install the binaries | Compile and install the binaries | ||
< | < | ||
- | cd vnstat-1.15 | + | cd vnstat-2.10 |
- | make && make install | + | ./configure --prefix=/ |
</ | </ | ||