# Download keydump.tar.lz4 with on-the-fly decompression ## Install LZ4 NOTE: Since LZ4 isn't a very common compression format yet, you may need to install it. For Debian/Ubuntu/LinuxMint etc. systems - the package is called `liblz4-tool` apt update apt install -y liblz4-tool For CentOS/Fedora/Redhat/Oracle etc. systems - the package is simply called `lz4` dnf install -y lz4 # For older RHEL-based distros, you may need to use 'yum' instead of 'dnf' yum install -y lz4 ## Download + decompress at the same time Using cURL: mkdir -p /var/lib/sks/dump cd /var/lib/sks/dump curl -fsSL http://files.privex.io/other/sks-keydump/keydump.tar.lz4 | lz4 -d - | tar xvf - Using WGET: mkdir -p /var/lib/sks/dump cd /var/lib/sks/dump wget -q -O - http://files.privex.io/other/sks-keydump/keydump.tar.lz4 | lz4 -d - | tar xvf - # Download the original uncompressed files easily and safely via rsync ## Via rsync with 2nd layer checksumming for guaranteed corruption free files Using `rsync` you can download the entire `orig/` folder, with built-in checksumming by rsync, and handles resuming partial downloads without any problems: mkdir -p /var/lib/sks/dump rsync -avch --progress --inplace rsync://files.privex.io/keydump/orig/ /var/lib/sks/dump/ ## Via rsync in normal mode - without the 2nd layer checksumming (still more reliable and safer than HTTP) NOTE: The `-c` argument (in `-avch`) enables a secondary layer of checksumming, which forces full checksums to be done on files to compare whether or not the local file matches the remote one. This can be veeeerrry slow sometimes, so if you don't have any existing/partial keydump files that you're concerned they might be corrupted (not just partially downloaded and could be resumed), then you may wish to remove the `c` option to disable rsync's second layer of checksums (the first layer is very good at detecting corruption, so it's unlikely that disabling 2nd layer checksums will cause issues) e.g. same command as before, but without the `-c` argument: mkdir -p /var/lib/sks/dump rsync -avh --progress --inplace rsync://files.privex.io/keydump/orig/ /var/lib/sks/dump/