Tested on Debian-likes and CentOS.