3 ms·
Any current Fedora users want to tell me what all the Red Hat tools use? Eg is usr bin banana actually Python 2 or Python 3?
by nailer 8y ago
Any current Fedora users want to tell me what all the Red Hat tools use? Eg is usr bin banana actually Python 2 or Python 3?
- rterzi 8y agoFedora at least as of F28, moved to have system tools like dnf use Python 3. For RHEL 8, the tools included with the system will use a different binary, platform-python that isn't in /usr/bin. I can't remember if that's also the case for F28/F29.
- dralley 8y agoFedora doesn't ship with any Python 2, all the utilities in the default installation are Python 3.
- rterzi 8y ago"Ship with" is a bit too ambiguous for my taste. F28/F29 "ship with" Python 2 in the sense that the packages are there, just not installed with a default install. If you `dnf install python2` (or something that depends on Python 2.7) it will get installed. They've also gone through the effort and moved the system stuff line dnf to Python 3.
- jlgaddis 8y agoRed Hat-specific tools or just all the general system utilities nstalled on a RHEL host? I've got a ThinkPad sitting here running the beta of RHEL 8. (FWIW, I don't think either is installed by default, but maybe that was something else I installed recently?)
- mroche 8y agoNeither ship by default. If you run a search for libpython you should find one hidden away in a nonstandard location. As far as I’m aware, only core tools necessary for a minimal install rely on it. Other packages in the repos can depend on an actual user space python version. ^ Needs verification
- moosingin3space 8y agoOn Fedora, there's a system Python interpreter installed at `/usr/libexec/system-python` that is used to run Python tools installed in the base system like `dnf`. On my F29 system, it's version 3.7. You can't install pip packages into the system Python environment, which helps you not break your system, like what can happen if you've ever run `sudo pip install --upgrade pip` on Ubuntu or Debian!