Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Python and perl interpreters are supplied to run programs including many fundamental apps.
SpamAssassin uses perl; Freecad uses python, and window managers use some. There are many similar uses, because in some cases, they're the right answer and cut development time.
The short answer tho your question is that yes, you can do it, by loading a Spartan window manager and doing without whatever doesn't work. But I wouldn't recommend it.
Seems to me, everything has a multitude of these programming languages in them these days, where are the distros that only use C?
For no Python or perl probably 15-20 years in the past. By the way no distros ever only used C as they all heavily use bash shell scripts and use awk and sed.
Python is very popular for GUI programming as interpreted languages have higher productivity (no compile/link cycles) so any distro that has GUI utilities likely will use Python. The installer for Fedora and RHEL/Centos named Anaconda is a Python script.
Perl is less popular as a general language but is still useful for processing text. The script to sign files for secure boot is a perl script.
Code:
$ file /usr/src/kernels/$(uname -r)/scripts/sign-file
/usr/src/kernels/3.10.0-862.2.3.el7.x86_64/scripts/sign-file: Perl script, ASCII text executable
#!/usr/bin/perl -w
#
# Sign a module file using the given key.
#
my $USAGE =
"Usage: scripts/sign-file [-v] <hash algo> <key> <x509> <module> [<dest>]\n" .
" scripts/sign-file [-v] -s <raw sig> <hash algo> <x509> <module> [<dest>]\n";
just an additional comment:
In general: deb based systems use perl based package management system, rpm based have python based one.
Why do you want a system without perl and python?
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,500
Original Poster
Rep:
Systems have become somewhat bloated these days, when I started, I had a 45MB RedHat 4.2, a 50MB RedHat 5.0, & a similar Debian 2.0 install.
Nowadays, the majority of distros are including all but the kitchen sink - there are smaller ones, & I use one, but it makes me wonder why they have to put it in the basic distro instead of letting the user add what they need.
Of course, most of you will realise this is very much a tongue in cheek question.
general systems are now a general, "full functional" desktops, not only a simple OS. That's why they contain a lot of preinstalled things. If you need a minimal install you need to look for a minimal distro (or prepare one for yourself)
I tend not to view Perl and Python as alternatives to each other like some people seem to. To my mind Perl is firmly in the system tools layer along with things like bash/awk and the other utilities, while Python belongs higher up the stack as an application development language: along with some of the more FOTM stuff like rust or go.
IMO Perl belongs in a base install, but not Python. I don't mind core system components being implemented in Perl (where appropriate), but I don't like the idea of them being written in something like Python: though if you asked me to rationalise that stance, I probably couldn't, so it's clearly just my own personal dogma.
Whether Python is an appropriate choice for the DE layer components I have less firm views on, but it's probably fine.
You can do it this waqy. Do LFS; Enter BLFS, and add what you need. All commands and patches are given.
That would be one way, I would also look into the minimal "busybox" based distros. I bet there is at least one that has no PERL or Python dependency. If not, we could easily build one based upon CORE (TinyCore) or Puppy.
Seems to me that as available hard drive capacity increases, so does the number of people wanting minimalist systems. Weird. Got an 8 TB hard drive? Stick TinyCore on it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.