can't remove zlib - CentOS
forums.centos.org › viewtopicOct 06, 2015 · Or if dnf will not operate without zlib present, you may need to download the rpm file direct from one of the CentOS mirrors and reinstall it manually. To show you what needs zlib, if you run rpm -q --provides zlib it will show you all the things that it provides that other things might depend on.