updating dev from git repo

Hello,

I’m trying to update to the latest version. (from 2.1.1052)

Few questions:
Can I just do a git pull origin master

git pull origin master - it seems to grab all the submodules

do I need to: git submodule foreach git pull origin master?

If I just do the first one, and run ./configure I get the following to files missing:

missing - sqllite3.c

and CMake Warning at aux/broctl/aux/trace-summary/CMakeLists.txt:30 (message):

Could not find dependency: ‘ipsumdump’, trace-summary will not be able to read pcap traces

I see that at least the sqllite3.c is available from the repo - how can I fix this so that it’s fixed properly - should I just copy the files from the repo? Or should I actually run a different git command? Thanks in advance!

When you update, sometimes (if we update submodules) you will also need to run:

git submodule update --init --recursive

.Seth

I'm trying to update to the latest version. (from 2.1.1052)

Few questions:
Can I just do a git pull origin master

git pull origin master - it seems to grab all the submodules

do I need to: git submodule foreach git pull origin master?

Every time you pull from bro's master branch, you should make sure the submodules are updated. So the typical way to use Bro git repos is to get it for the first time:

  git clone --recursive git://git.bro.org/bro

Then sometime later update the master branch

  git pull # Assuming master branch is already checked out locally.
  git submodule update --recursive --init # Update submodules.

and CMake Warning at aux/broctl/aux/trace-summary/CMakeLists.txt:30 (message):

Could not find dependency: 'ipsumdump', trace-summary will not be able to read pcap traces

This is unrelated to how you update from git, it's just pointing out an optional dependency, ipsumdump, wasn't found.

- Jon

Thanks all, I understand! Appreciate the quick response!

JP