Why Python is pre-installed?

I am curious about why my fedora OS has Python pre-installed by default?

Why not? :slight_smile: Python nowadays is a very popular programming language. And many tools and software are built using Python or depend on it (i.e. GIMP)

But first of all, many Fedora’s core tools are written in Python: DNF, Anaconda, firewall-cmd, etc.


Try delete python and you will discover the results, Danger, some people likes the censure here. :smile_cat:

1 Like

Thankfully you can’t :sweat_smile: :sweat_smile:

$ sudo dnf remove python3
 Problem: The operation would result in removing the following protected packages: dnf
$ sudo rpm -e python3
error: Failed dependencies:
	python(abi) = 3.7 is needed by (installed) python3-six-1.12.0-2.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-dbus-1.2.8-6.fc31.x86_64
	python(abi) = 3.7 is needed by (installed) python3-libselinux-2.9-5.fc31.x86_64
	python(abi) = 3.7 is needed by (installed) python3-idna-2.8-2.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-systemd-234-9.fc31.x86_64
	python(abi) = 3.7 is needed by (installed) python3-augeas-0.5.0-15.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-decorator-4.4.0-2.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-distro-1.4.0-2.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-ordered-set-3.1-2.fc31.noarch
	python(abi) = 3.7 is needed by (installed) python3-pid-2.2.3-3.fc31.noarch

What’s wrong with python being pre-installed?

I use Python from time to time but it feels very slow. I hope all software be written in C/C++. :stuck_out_tongue_winking_eye:

as simple as



1 Like

IIRC, yum was written in Python, DNF is in C so it performs much better.

I was looking at the Python code for dnf yesterday:
Tree - rpms/dnf - src.fedoraproject.org have

URL:            https://github.com/rpm-software-management/dnf

and this goes to:

where code is in Python.

libdnf is written in C++, I am not sure how much of dnf is using it at the moment, but it is the future plan for dnf, rpm-ostree and packagekit.

I don’t see a cause of alarm if Python is pre-installed. After all it’s a very popular programming tool.

And some part of Fedora are written in Python. So, It’s required I guess.

Many applications use python as programming language. It is only natural that it be installed.
As previously mentioned the system prevents you removing many system required python packages.
Many of us use python for development so please don’t be concerned that it is preinstalled.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.