diff --git a/README.md b/README.md index b9d2b53bf9ff9452c6ff2da096171d1328c3e0b4..0f80a05649d067b6ffad4f2c89122b09c8cc1ce5 100644 --- a/README.md +++ b/README.md @@ -10,32 +10,19 @@ NOTE: The use of option `copy` is strongly recommended. The remaining options mo * Debian 10 * Windows 10 -## Requirements -* Perl version 5.28 or higher -* cpan or cpanm -* several CPAN modules such as Archive::BagIt (0.065 or higher) - * `sudo cpan -D Archive::BagIt` to check module perl version - -## Three ways to install a module -* with cpan `cpan Archive::BagIt` -* with cpanm `cpanm Archive::BagIt` (NOTE: `cpan App::cpanminus` must be installed. If errors like IO:AIO are present, use `cpanm -i -f Archive::BagIt`). -* from source (Linux) - 1. Download for example Archive-BagIt-0.072.tar.gz from [metacpan Archive::BagIt](https://metacpan.org/pod/Archive::BagIt) - 2. Extract it with `tar zxf Archive-BagIt-0.072.tar.gz` and go to project dir with `cd in Archive-BagIt-0.072` - 3. Run `perl Makefile.pl` - 4. `(d)gmake` - 5. `(d)gmake test` - 6. `(d)gmake install` - 7. with `cpanm Archive::BagIt` test for the version. Result will be something like `Archive::BagIt is up to date (0.072)`. - -## Archive::BagIt module -* Sometimes it is offered to update module to a new version -use `cpan Archive::BagIt`. If version not changed to a new one, try `cpanm Archive::BagIt` or `perl -MCPAN -e 'install Archive::BagIt'` - -## Perl module deinstallation -Using cpanm is recommended for an assisted and clean uninstall. -* install cpanm with `cpan App::cpanminus`. -* remove a Perl module with `cpanm --uninstall MODULE_NAME` +## Installation (Debian 10) +1. Update system packages (optional but recommended): + `sudo apt update && sudo apt upgrade -y` +2. Install required tools and libraries: + `sudo apt install -y build-essential git perl libperl-dev liblwp-protocol-https-perl libfile-copy-recursive-perl libmarc-record-perl libxml-libxml-perl libxml-xpath-perl libdatetime-format-iso8601-perl cpanminus` + `sudo cpanm Archive::BagIt` +3. Download latest SLUB SIP Builder: + `git clone https://git.slub-dresden.de/digital-preservation/SLUB_SIP_Builder.git` + → Hint: For simple updates at a later date, just use `git pull` in directory `SLUB_SIP_Builder` to get the latest version +4. Run SLUB SIP Builder: + `cd SLUB_SIP_Builder` + → Try an example command from below + `perl bin/slubsipbuilderbagit.pl`... ## Installation (Win 10) 1. Check UTF-8 flag at [ENG] `Systemadministration/TimeAndRegion/Region/Administration/AreaPattern` or [DE] `Systemsteuerung/Zeit und Region/Region/Verwaltung/Gebietsschema ändern/`, for using such characters as `äöüÄÖÜß`. Computer will be restarted!