this post was submitted on 22 Jun 2024
600 points (97.8% liked)

Linux

48214 readers
1071 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 173 points 4 months ago (4 children)

The tone here is surprisingly negative. Personally I'm happy with the efforts of the Flathub team 🤷

[–] [email protected] 74 points 4 months ago

As a newer Linux user I really like flatpaks.

I don't use them for most things I install but proprietary apps I want sandboxed or programs that have weird issues with dependencies I grab the flatpak.

[–] [email protected] 30 points 4 months ago* (last edited 4 months ago) (2 children)

For me on Arch, Flatpaks are kinda useless. I can maybe see the appeal for other distros but Arch already has up-to-date versions of everything and anything that's missing from the main repos is in the AUR.

I also don't like how it's a separate package manager, they take up more space, and to run things from the CLI it's flatpak run com.website.Something instead of just something. It's super cumbersome compared to using normal packages.

[–] [email protected] 19 points 4 months ago (2 children)

I also prefer to get my software from the distro's repos, but for software from third parties, flatpak adds a security layer, making it more secure when compared, for example, to aur.

load more comments (2 replies)
load more comments (1 replies)
[–] [email protected] 14 points 4 months ago (1 children)

Lemmy (and phoronix) people are generally extremely repelled by new stuff in the Linux world

load more comments (1 replies)
[–] [email protected] 13 points 4 months ago (4 children)

Agreed, flatpaks are great for desktop apps. I use Nix for the majority of my packages, but I use flatpak for proprietary for the sandboxing.

load more comments (4 replies)
[–] [email protected] 50 points 4 months ago (1 children)

Lol, what a pointless map.
It’s impossible to tell at a glance which countries have more or less downloads, other than a couple of countries with a slightly lighter colour.

[–] [email protected] 13 points 4 months ago (1 children)

Yeah, they could have applied a logarithm or something.

[–] [email protected] 12 points 4 months ago (3 children)

And included a legend, such as a colour bar

load more comments (3 replies)
[–] [email protected] 45 points 4 months ago (3 children)

North Korea: 316 downloads

Interesting...

In all seriousness, in both my home country and the country I live in, the number of downloads surpasses the population numbers which is kinda insane.

[–] [email protected] 37 points 4 months ago

I think they count every download of every package, every version, every time. It's not the number of unique users or even packages.

If you install 3 apps you might need to download 3 versions of graphics driver, 3 versions of desktop environment libraries and so on, It won't count as one user installing 3 apps, it will show up as 10 -20 downloads. And that's just the initial install, every time you update them it counts another 10-20.

[–] [email protected] 14 points 4 months ago* (last edited 4 months ago)

It could be simple download requests, rather than MAC or IP address downloads.

[–] [email protected] 8 points 4 months ago

It is per download not per person.

[–] [email protected] 37 points 4 months ago (3 children)

Oh wow, a lot of people use it in countries with a lot of people!

[–] [email protected] 35 points 4 months ago (1 children)

I'd prefer to see downloads per country per capita.

[–] [email protected] 33 points 4 months ago

Right? "Oh look, country with huge population has more downloads than country with small population!"

[–] [email protected] 34 points 4 months ago* (last edited 4 months ago) (12 children)

To everyone saying you can’t mirror a flatpak repo… you’re absolutely right. There should be a far easier way to set up your own mirror without needing to build everything from scratch. That being said, if you wanted to try to make your own repo with every one of flathub’s apps, here you go:

https://github.com/flathub

https://docs.flatpak.org/en/latest/hosting-a-repository.html

Edit: Some did get a flathub mirror working. The issue is that a. Fastly works good enough and b. There is no concept of “packages” on the server side. It’s just one big addressed content store because of ostree, and syncing is apparently difficult? Idk, not being able to sync the state of content is like the entire point of ostree…

https://github.com/flathub/flathub/issues/813

load more comments (12 replies)
[–] [email protected] 27 points 4 months ago (8 children)

Sorry to ask, I'm not really familiar with Linux desktop nowadays: I've seen Flatpak and Flathub talked about a lot lately and it seems to be kinda a controversial topic. Anyone wanna fill me in what's all the noice about? It's some kind of cross-distro "app store" thingy?

[–] [email protected] 75 points 4 months ago* (last edited 4 months ago) (8 children)

Flatpak is a universal application packaging standard for Linux. It allows devs to create a single application that gets bundled with all necessary dependencies including versioning.

These apps run in their own semi-isolated "container" which makes immutable distros possible. (Distros like Fedora Silverblue that are effectively impossible to break by installing or removing critical system files.)

This means that a Linux app doesn't have to have a .deb version, an .rpm version, or be pre-compiled for any other distros. A user can simply go to Flathub, (the main repository for Flatpak apps), download the flatpak, and install it on their distro of choice.

It's quickly becoming the most popular way for users to install apps on Linux because it's so easy and quick. But there are a few downsides like size on disk, first party verification, per-distro optimizations, and the centralization of application sources. That's why some users aren't fully endorsing or embracing how popular they are becoming.

[–] [email protected] 17 points 4 months ago* (last edited 4 months ago) (4 children)

Cool, thanks for the explanation.

a single application that gets bundled with all necessary dependencies including versioning

Does that mean that if I were to install Application A and Application B that both have dependency to package C version 1.2.3 I then would have package C (and all of its possible sub dependencies) twice on my disk? I don't know how much external dependencies applications on Linux usually have but doesn't that have the potential to waste huge amounts of disk space?

[–] [email protected] 30 points 4 months ago (4 children)

Essentially yes, if you start using lots if older applications or mixing applications that use many different dependency versions, you will start to use lots of extra disk space because the different apps have to use their own separate dependency trees and so forth.

This doesn't mean it will be like 2x-3x the size as traditional packages, but from what I've seen, it could definitely be 10-20% larger on disk. Not a huge deal for most people, but if you have limited disk space for one reason or another, it could be a problem.

load more comments (4 replies)
load more comments (3 replies)
[–] [email protected] 7 points 4 months ago (2 children)

What about those apps using out of date libraries? Wouldn't that become a security issue - since containers usually aren't that secure, right? And all app developers would have to update their container libraries separately, instead of just updating the system libraries?

load more comments (2 replies)
load more comments (6 replies)
[–] [email protected] 9 points 4 months ago (2 children)

Was controversial when it was new and full of problems. Now it is mostly the standard for apps.

load more comments (2 replies)
load more comments (6 replies)
[–] [email protected] 25 points 4 months ago

As a professor I have to say... the site admin skipped the class that taught them to include always the color bar.

[–] [email protected] 14 points 4 months ago (7 children)

I'm gonna be honest I've never had a flatpak version of something ever work properly.

There was even one popular media player that only came in flatpak form or otherwise build from source.

So obviously, for no reason at all, it barely functioned compared to other applications I had already tried.

Congrats to you people put there somehow running things like Steam with no problems lmao.

[–] [email protected] 33 points 4 months ago

I have like 20 flatpak software products running without any problem for 2 years now.

[–] [email protected] 14 points 4 months ago

Your system might be messed up

load more comments (5 replies)
[–] [email protected] 10 points 4 months ago (2 children)

Does that count for when an OS is wiped and reinstalled or a nerd has like 3 computers and keeps OS flipping?

[–] [email protected] 7 points 4 months ago (1 children)

In that case you should use user-install flatpaks and separating and reusing your /home partition

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 9 points 4 months ago (1 children)

Flatpak's usecase for me is Alpine Linux and other distributions that use musl or other libc implementations. I don't love it, I think its cli interface and the way you add flatpak servers to be obtuse and annoying, but it is useful for getting glibc dependent software.

load more comments (1 replies)
[–] [email protected] 8 points 4 months ago (10 children)

Still no proper way to mirror the thing and have it working offline / on internal networks. Great job self-hosters and sovereign citizens ;)

[–] [email protected] 12 points 4 months ago* (last edited 4 months ago) (2 children)

Offline/internal network installs can be handled with flatpak create-usb - https://docs.flatpak.org/en/latest/usb-drives.html

One can distribute flatpaks along with their dependencies on USB drives (or network shares, etc.) which is especially helpful in situations where Internet access is limited or non-existent.

Cache/mirroring would be great for those who need it.

Edit:

Thinking about it, I wonder if there's enough "core features" with 'create-usb' that its just matter of scripting something together to intercept requests, auto-create-usb what's being requested and then serve the package locally? If a whole mirror is required, it may be possible to iterate over all flathub packages and 'create-usb' the entire repo to have a local cache/mirror? Just thinking "out loud".

load more comments (2 replies)
load more comments (9 replies)
load more comments
view more: next ›