You are not logged in.

#1 2019-04-23 23:20:19

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

[SOLVED] Arch vs Ubuntu Packages (eg vnstat)

I'm a long-time Ubuntu user finally moving over to Arch and I've discovered something a bit confusing. I've been using vnstat for years and I'm accustomed to using the --importdb and --exportdb functions of this package. I wanted to copy my Ubuntu stats over to my new Arch install, but to my surprise these functions are entirely absent from the Arch version (which is in the main repo).

So my first question is if anyone knows how to import stats into the Arch version of vnstat, and secondly, is it common to have different versions of the same package between different distros?

Last edited by JimDeadlock (2019-04-23 23:40:30)

Offline

#2 2019-04-23 23:26:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Arch vs Ubuntu Packages (eg vnstat)

Same packages: newer versions.

vnstat changelog wrote:

2.0 / 21-Oct-2018
...
- Removed
   - Weekly output
...
   - --exportdb, use --oneline, --json or --xml instead
   - --importdb, -u / --update and related options using vnstat command
   - Old style (default in versions up to 1.7) summary layout in image output


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-04-23 23:40:16

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Arch vs Ubuntu Packages (eg vnstat)

Ahhh of course, I should have known smile It just threw me because I normally expected an Arch version to have more features rather than less. Thanks for the answer.

Offline

#4 2019-04-24 13:47:25

Vergo
Member
Registered: 2019-04-24
Posts: 2

Re: [SOLVED] Arch vs Ubuntu Packages (eg vnstat)

JimDeadlock wrote:

So my first question is if anyone knows how to import stats into the Arch version of vnstat, and secondly, is it common to have different versions of the same package between different distros?

Assuming both systems are 64-bit then, in most cases, you can simply copy the database files from the old system to the new one. When the vnStat 2.x daemon is started, it will automatically import the data from the old format databases to the new one if the new one didn't already exist.

JimDeadlock wrote:

It just threw me because I normally expected an Arch version to have more features rather than less.

The "more features" part is elsewhere in that same changelog. smile

changelog wrote:

2.1 / 6-Dec-2018

- New
   - Remove possible PollInterval and UpdateInterval drift over time
   - Sync SaveInterval to full minutes

2.0 / 21-Oct-2018

- New
   - C struct dump database has been replaced with sqlite database,
     full data import included from legacy databases of versions 1.3 - 1.18
   - User configurable data retention durations for all resolutions with
     following changed defaults:
                   v1.18     v2.0
       5 minutes     n/a      576   (48 hours)
       hours          24       96   (4 days)
       days           30       62   (2 full months)
       months         12       25   (2 full years)
       years         n/a      all
       top days       10       20
   - Option to select units to use SI decimal prefixes using calculations
     with powers of 1000 (IEC and JEDEC prefixes use powers of 1024)
   - Yearly and 5 minute resolution statistics
   - Pebibyte and exbibyte support
   - Options the configure the length of each list output
   - Option to limit the length of --json and --xml outputs
   - Hourly list output replaces the hourly graph when the -h parameter is used
   - Hourly graph is accessible with -hg / --hoursgraph parameter
   - Options -b / --begin and -e / --end for specifying query time range
   - Configuration comes with ISO 8601 date formats as new defaults

Offline

Board footer

Powered by FluxBB