Notes for later, how to install packages (and their deps!) on a server without access to internet? Definitely the 'quick way to do it' not the 'right one'.
$ docker run --rm -it centos:7.6.1810 /bin/bash
# cd
# yumdownloader --resolve nmap-ncat ... # download all required packages and their dependencies
# yum install -y createrepo
# createrepo $PWD
# tar cf repo.tar *