3 ms·
What's wrong with that command?
by ciarannolan 6y ago
What's wrong with that command?
- NikolaeVarius 6y agoOS requires python pkgs for much core functionality. Command gets rid of all of them
- dllthomas 6y ago... assuming you don't have any files starting with `python` in the current directory, in which case you might (or might not) be just fine.
- segfaultbuserr 6y agoMany programs, including system utilities, are written in or indirectly powered by Python. Removing Python effectively cripples half of your system.
- LinuxBender 6y agoThis used to be an issue in the Redhat flavors. You could uninstall python or bash and the system would eat itself (RHEL5 and before). Since then, they have added protections for specific packages and you can even add further protections for whatever you consider to be critical packages.
- yodelshady 6y agoI can't speak for all Debian, but I've done the same on a Ubuntu. Both the package manager and terminal emulator rely on python. It's not quite rm -rf /, but it was certainly "fun".
- txutxu 6y agoIf you install a minimal Debian server avoiding recommends, and remove a few non critical packages, you can remove python, and start building from there. No problem. Nothing is wrong. If you go with a default installation, and start building over there, for example a desktop system. This will remove everything else that depends on python (not only python). And that, is probably wrong, as you do not expect to remove half of the system (and don't reinstall it back), when you try to reinstall python, like megiddo said. Some packages that do not need python at all, depend on python because of the packaging choices, like post/pre install scripts written in python instead of shell. Other packages that do not use python in their core functionality (for example a program written in C) depend on python because of add-on scripts or contributed extensions, shipped in the same package. Unlike Debian, in the Ubuntu case this command is worse, because Canonical push hard for python. Historically, many Debian packages depending on python, have been introduced or modified by maintainers/developers working for Canonical. To install a minimal Ubuntu server without python, first you need to remove many packages (a lot), related to launchpad, or landscape, or a few other Ubuntu specific services, or stuff really intended for desktop users (not for a minimal server). Nothing against Python or Canonical... but as I have needed to deploy servers at work with the requirement of really really minimal base, I know well about removing Python in both Linux distributions.