I'm aiming to translate a Debian package to an RPM package to install it on a CentOS Linux 7 (Red Hat).
alien to accomplish it:
alien --to-rpm --scripts --keep-version debian_pkg.deb. However, when I want to install the created rpm package, an error is raised from the
preinst script. I saw online that there is a high likelihood that scripts written for Debian packages won’t work for RPM packages.
Is there an easy way to translate a Debian script to an RPM script? If not, is there any common patterns when you want to do the conversion?