Change [index_dir] and [samples_dir] to paths on your filesystem where you want to keep index and samples.
sudo docker run -v [index_dir]:/var/lib/ursadb:rw -v [samples_dir]:/mnt/samples mqueryci/ursadb
git clone https://github.com/CERT-Polska/ursadb.git
sudo docker image build -t ursadb .
sudo docker run -v [index_dir]:/var/lib/ursadb:rw -v [samples_dir]:/mnt/samples ursadb
git clone --recurse-submodules https://github.com/CERT-Polska/ursadb.git
sudo apt update
sudo apt install -y gcc-7 g++-7 libzmq3-dev cmake build-essential clang-format git
mkdir build
cd build
cmake -D CMAKE_C_COMPILER=gcc-7 -D CMAKE_CXX_COMPILER=g++-7 -D CMAKE_BUILD_TYPE=Release ..
make -j$(nproc)
/usr/local/bin
:
sudo make install
cp contrib/systemd/ursadb.service /etc/systemd/system/
systemctl enable ursadb
nix-env -i ursadb
UrsaDB is distributed in a form of pre-built Debian packages targeting Debian Buster and Ubuntu 18.04. You can get the packages from GitHub Releases.
You may use this convenient one-liner to install the latest UrsaDB package along with the required dependencies:
curl https://raw.githubusercontent.com/CERT-Polska/ursadb/master/contrib/install_deb.sh | sudo bash