"There's a project underway in Fedora 12 to finally resolve the issues with Red Hat including #!/usr/bin/env python in our python executables: https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython There's also a Fedora bug opened on this, and comments in there state that this is a big priority for RHEL6: https://bugzilla.redhat.com/show_bug.cgi?id=518994 For RHEL5, we've been instructed by Product Management to open bugs on a package-by-package basis to address the problem. In this case, yum-rhn-plugin in RHEL5 has at least one instance of a python script containing #!/usr/bin/env python"
It has been fixed in spacewalk some times ago. And in recent yum-rhn-plugin in RHEL5.4 it is not present: [msuchy@dri/~]$ rpm -ql yum-rhn-plugin | xargs grep /usr/bin/env [msuchy@dri/~]123$ rpm -q yum-rhn-plugin yum-rhn-plugin-0.5.4-13.el5