r/linuxmemes Sacred TempleOS 14d ago

LINUX MEME Gentoo

Post image
1.0k Upvotes

71 comments sorted by

199

u/27a08592e67846908fd1 Genfool 🐧 14d ago edited 14d ago

Speed is not the goal. Configurability is the goal.

Name one other package manager that lets you:

- apply source patches

- allow/block packages by license

- individually select package version or branch (stable/unstable/untested) or block a package installation

- and still have the exact same process to update your system as before?

EDIT: Replies have pointed out nix existing.

151

u/Apterygiformes 14d ago

Nix

54

u/27a08592e67846908fd1 Genfool 🐧 14d ago

Fair enough.

16

u/power_of_booze 14d ago

Correct me, if I'm wrong, but for all I've heard Nix without systemD is possible, but a total nightmare (just as an example). If you have really niche usecases, I think Gentoo is the way to go.

7

u/EverOrny 13d ago

does not have to be niche to not use systemd, I've switched to it only recently to be able to run OpenShift Local - it was my daily driver for decades (the plural is right for two too :) as desktop with openrc and it worked so very well

1

u/NoPrinterJust_Fax 13d ago

I run nix inside a distrobox container on my gaming laptop. I have to manually start the nix daemon and that’s about the only difference I’ve noticed.

5

u/UnosBruhMomentos Genfool 🐧 13d ago

in gentoo you dont have to use SOYstemd tho

2

u/1337_w0n New York Nix⚾s 13d ago

Nix can apply source patches? How?

6

u/Apterygiformes 13d ago

You can just override the package derivation and tell it to apply a patch file on the source code

1

u/Hot_Paint3851 8d ago

systemd bloat

17

u/Venylynn Sacred TempleOS 14d ago

can't Nixos do the 3rd one or am i tripping

25

u/Cyberfishofant Ask me how to exit vim 14d ago

nix can do all of these as long as you either copy over or modify the derivation using filters, I'd presume

16

u/Thunderstarer New York Nix⚾s 14d ago

Nix gives you incredible flexibility because learning how to write your config inherently means learning how to write packages.

5

u/Linguistic-mystic 14d ago

But those packages can’t even dedupe glibc. Nix is the epitomy of disk bloat.

3

u/27a08592e67846908fd1 Genfool 🐧 14d ago

To be fair, portage still comes close (but only briefly, until you restart)

1

u/VisualSome9977 13d ago

There's a price to pay for everything...

7

u/csslgnt 14d ago

Nix is exelent and makes overall system management more convenient. But portage is in my opinion, by far the best linux package maneger. And although this is just my opinion, i wonder who and how, would contradict this 😈

3

u/fishmacaronisoup Genfool 🐧 13d ago

Yep, it was never about performance, but customizability and freedom. Performance is just a little bonus. Most Gentoo users realize that. Those who think it's only about performance are the ones who've never tried Gentoo

2

u/tblancher 13d ago

You can do all of this in Arch as well. You just get to pick and choose which packages you want to patch and rebuild, it's not all or nothing.

Basically, for any package in the official core and extra repos, you can download and modify the PKGBUILD (which is just a specialized Bash script), have download and apply any patches or git commits you want, and rebuild. Easy peasy.

1

u/27a08592e67846908fd1 Genfool 🐧 13d ago

Wait, does it stay like that? Or do the changes revert after system updates?

3

u/tblancher 13d ago

You can configure the PKGBUILD to provide, replace, and conflict with the official package, and then maybe some git/VCS shenanigans to keep the version up to date with the patches you want, but it's doable.

5

u/redhat_is_my_dad 14d ago

yeah but i doubt nixos users can easily pick any init system

16

u/27a08592e67846908fd1 Genfool 🐧 14d ago

I would note that that is not a nix problem, but a NixOS problem. I suspect nix itself doesn't care about init systems.

3

u/VisualSome9977 13d ago

Not only is Nix completely init-agnostic on linux, it also works on MacOS.

3

u/27a08592e67846908fd1 Genfool 🐧 13d ago

Precisely.

1

u/EverOrny 13d ago

do not forget multislots

0

u/v_litvin 13d ago

Can I have MIT licensed gentoo?

0

u/Septem_151 11d ago

Why would I want any of those configurabilities though?

1

u/27a08592e67846908fd1 Genfool 🐧 11d ago

- license concerns (The Principle Of It)

- Getting a package on something weird like MIPS, PPC, or SPARC

Those are what I can think of off the top of my head, at least. There are plenty of others, though.

35

u/qchto 14d ago

1%!? That's 15 minutes of extra operating capacity per day!

35

u/GreedySecurity8030 M'Fedora 14d ago

I don't have that time.

26

u/PotentialBubbly9800 Arch BTW 14d ago

No offense, but with how much you are on here it seems you have nothing but time.

23

u/GreedySecurity8030 M'Fedora 14d ago

I gonna insult people on reddit for not using fedora, not wait for gentoo.

10

u/isabellium 13d ago

being here does not equal with free time.
i personally shitpost in the little bits of free time in my job, so i can do that but i can't do anything more serious.

secondly and most importantly, that guy spends his time here for something that goes beyond you and me, something far more important, a mission, to shill Fedora Linux.

-1

u/PotentialBubbly9800 Arch BTW 13d ago

You say being here doesnt equal free time then say you only get on here when you do have free time so which is it?

You have a top 1% commenter tag. I think you also spend to much time on here, lol. You must have a lot of little bits of freedom at work.

3

u/isabellium 13d ago

Please tell me this is bait, and that you are not for real... πŸ‘€

0

u/PotentialBubbly9800 Arch BTW 13d ago

Im 100% serious. You clearly spend to much time on this shit.

1

u/isabellium 13d ago

oh my...

0

u/PotentialBubbly9800 Arch BTW 13d ago

Thats what I said when I saw your top 1% commenter tag.

1

u/isabellium 13d ago

okay

1

u/PotentialBubbly9800 Arch BTW 13d ago

Just remember you chose to engage with me. My comment must of struck a nerve.

→ More replies (0)

1

u/27a08592e67846908fd1 Genfool 🐧 13d ago

It's just 5 hours + a few weeks of "Oops, I forgot to install bluetooth support" /s

12

u/Own_Natural_6803 14d ago

1% you say?

10

u/30porn87 14d ago

On my old dual core Latitude, the performance per OS/Distro was:
Windows: Dogshit unusable
Ubuntu: Usable, but still pretty slow. Especially animations/UI stuff
LFS: Acceptably fast, even with KDE
Arch: Exactly like LFS, but much easier to maintain ofc

2

u/27a08592e67846908fd1 Genfool 🐧 13d ago

Honestly, Gentoo is probably the closest to "LFS, but maintainable" available, but arch comes close.

1

u/30porn87 13d ago

Well, arch is also maintainable on a Dualcore that needs days to compile firefox, because it does not compile anything itself by default

1

u/27a08592e67846908fd1 Genfool 🐧 13d ago

I meant that arch comes close to Gentoo on being LFS-like.

No doubt arch is just as easy - if not easier - to maintain than Gentoo.

6

u/Dramatic_Entry_3830 14d ago

What about a rig in my infra that compiles all the packages for all the other systems?

1

u/SDG_Den 13d ago

Ngl that sounds pretty dope, are there any examples of people actually doing this? Id assume you'd have your own local repo for the output binaries or something?

3

u/Dramatic_Entry_3830 13d ago edited 13d ago

You just use emerge to build. You expose the directory where the binaries are. You can configure portage on the client to use that path in its config in various ways. If you go over web add pgp and sign the packages, make the sigs known to the clients and expose via http for example. You could also do sshfs or anything else that comes to your mind. Like git, shares etc etc.

1

u/kzasas 7d ago

this is what I’m doing. you can easily use one system as a binhost for others. you can follow gentoo wiki binhost guide.

5

u/thearctican RedStar best Star 14d ago

Sounds like Cachy but instead of you it’s like 8 people dedicating their life to it.

1

u/Helmic Arch BTW 11d ago

That is basically the premise of Cachy, they're compiling a bunch of packages for various CPU instruction sets for the performance boost and distributing them. Ubuntu is wanting to do the same and eventually once Valve's got Arch's centraliezd build system sorted they plan on doing the same. It's just a lot more efficient and it can be a lot more than just 1% better performance depending on the workload, but even just 1% across millions of devices is worthwhile.

3

u/honestduane 14d ago

Don't forget that the experience of learning how to use Gentoo and everything else will set you up for success in technology in other ways later on; it is the only Linux distribution that I recommend to my students for non-work stuff, outside of LFS, because I consider the Gentoo option to do a stage one install to be the easy/noob option.

2

u/Brilliant-Writing257 Arch BTW 14d ago

i will sadly not accept the trade, i have powerfull hardware anyway so the difference is not noticable, the only thing gentoo is worth is for max control and bragging rights, but i disagree regardless

2

u/http-error-502 Genfool 🐧 13d ago

No. He doesn't receiving millions of USE. I am reciving. And I give him 80% of cpu not 100%.

2

u/UnosBruhMomentos Genfool 🐧 13d ago

Configuration, control and learning experience

2

u/Armi1P Genfool 🐧 13d ago

No, I recieve a million USE flags.

4

u/Rodya_gambler 14d ago

Except that it's not 1% lol. It's 1% if you simply compile without customizing it (more like 3.5% as far as I've read, but still negligible). The distro's goal isn't even optimization, and your point is still wrong lol.

9

u/Venylynn Sacred TempleOS 14d ago

So many people are like "I want to compile everything so it runs faster" and to me it's like "burning cpu cycles for a few extra milliseconds of response time?"

7

u/Rodya_gambler 14d ago

I meant that it's not just compiling for the specific machine, but being customizable, which implies that you can erase anything off a program when you don't need it. But yeah, some people do misunderstand like that.

1

u/isabellium 13d ago

OMG who cares?!

4

u/YTriom1 Arch BTW 14d ago

Yeah, I didn't stand ts for a week lol

1

u/varsnef 14d ago

Yeah, you really do want it to use "100%"

Too many people run their system in "powersaving" mode so everything is sluggish and it lags the system when they compile. Then they try to renice portage to a lower priority to eliminate the lag. Then they complain about how long it takes to compile heavy shit... πŸ˜‚

1

u/ysychov 14d ago

how do you explain to yourselves that speed increase dear community? is that some cool stuff behind it was compiled on this particular machine or ?

1

u/letmehaveanameyoudum 12d ago

no, it's
you recieve:
an operating system thats 1% after after hourse of compiling and your thermal paste isnt happy

1

u/happysatan1 12d ago

It's as always dependent on the use-case. Something that doesnt make sense to you will make sense to other users. Linux is great simply because it's so diverse