Application distributable

Is there a way to package a c/c++ app so that it can be distributed and installed in various linux distros?
Yes and no.

Probably the most portable method is to distribute the source code with necessary configuration so that each receiver can compile it themselves with GNU build system.

However, distributions prefer to use package management and that relies on packages that use the management system's format, e.g. RedHat's, Debian's, etc. In other words, one size does not fit all.
Is there a way to make different distributable packages for the different distros in c/c++, using code::blocks?
Topic archived. No new replies allowed.