blob: 8b45bcff5211179950747060741a115ecb8de037 [file] [log] [blame] [view]
Davide Pesavento4a160042020-04-13 16:50:02 -04001# Installing repo-ng
Shuo Chen050fcad2014-03-12 15:45:54 -07002
Davide Pesavento4a160042020-04-13 16:50:02 -04003## Prerequisites
Shuo Chen050fcad2014-03-12 15:45:54 -07004
Davide Pesaventoe9b09b82023-01-19 13:30:07 -05005* [ndn-cxx and its dependencies](https://docs.named-data.net/ndn-cxx/current/INSTALL.html)
Shuo Chen478204c2014-03-18 18:27:04 -07006* sqlite3
Shuo Chen050fcad2014-03-12 15:45:54 -07007
Davide Pesavento4a160042020-04-13 16:50:02 -04008## Build
Shuo Chen050fcad2014-03-12 15:45:54 -07009
Davide Pesavento4a160042020-04-13 16:50:02 -040010To build in a terminal, change to the directory containing the repo-ng repository.
11Then enter:
Shuo Chen050fcad2014-03-12 15:45:54 -070012
13 ./waf configure
14 ./waf
15 sudo ./waf install
16
Junxiao Shi434fa492017-06-15 00:37:54 +000017This builds and installs `ndn-repo-ng` and related tools.
Shuo Chen050fcad2014-03-12 15:45:54 -070018
Davide Pesaventoe9b09b82023-01-19 13:30:07 -050019If configured with tests (`./waf configure --with-tests`), the above commands
20will also generate unit tests that can be run with `./build/unit-tests`.
Weiqi Shibd469da2014-08-21 10:08:51 -070021
Davide Pesavento4a160042020-04-13 16:50:02 -040022## Configuration
Weiqi Shibd469da2014-08-21 10:08:51 -070023
Junxiao Shi434fa492017-06-15 00:37:54 +000024The default configuration file path is `/usr/local/etc/ndn/repo-ng.conf`.
Davide Pesaventoe9b09b82023-01-19 13:30:07 -050025Users may copy the [`repo-ng.conf.sample`](repo-ng.conf.sample) example config
26to that path.
Weiqi Shibd469da2014-08-21 10:08:51 -070027
Davide Pesavento4a160042020-04-13 16:50:02 -040028## Database
Weiqi Shibd469da2014-08-21 10:08:51 -070029
Davide Pesavento4a160042020-04-13 16:50:02 -040030The database path is set in the `storage.path` key of the configuration file.
Davide Pesavento4162cc52019-01-25 01:32:30 -050031The default database path is `/var/lib/ndn/repo-ng`.
Weiqi Shibd469da2014-08-21 10:08:51 -070032
Davide Pesavento4a160042020-04-13 16:50:02 -040033repo-ng will automatically create a database if one does not exist.
Weiqi Shibd469da2014-08-21 10:08:51 -070034
Davide Pesavento4a160042020-04-13 16:50:02 -040035Users should make sure that the `ndn-repo-ng` process has write access to the
36database directory.
Weiqi Shibd469da2014-08-21 10:08:51 -070037
Davide Pesavento4a160042020-04-13 16:50:02 -040038## Tools
Weiqi Shibd469da2014-08-21 10:08:51 -070039
Davide Pesaventoe9b09b82023-01-19 13:30:07 -050040Currently, three tools are included: `ndngetfile`, `ndnputfile`, and `repo-ng-ls`.
Davide Pesavento4a160042020-04-13 16:50:02 -040041Users can find detailed information about these tools on the
42[repo-ng wiki](https://redmine.named-data.net/projects/repo-ng/wiki/Tools).