Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Many changes of mind and mood; do not hesitate too long.


comp / comp.os.linux.misc / Re: What exactly is Snap or Flatpack ?

SubjectAuthor
* What exactly is Snap or Flatpack ?Lars Poulsen
+* Re: What exactly is Snap or Flatpack ?Rich
|`* Re: What exactly is Snap or Flatpack ?Phillip Frabott
| `* Re: What exactly is Snap or Flatpack ?Lars Poulsen
|  `* Re: What exactly is Snap or Flatpack ?stepore
|   `* Re: What exactly is Snap or Flatpack ?Charlie Gibbs
|    `- Re: What exactly is Snap or Flatpack ?Computer Nerd Kev
`- Re: What exactly is Snap or Flatpack ?Woozy Song

1
Subject: What exactly is Snap or Flatpack ?
From: Lars Poulsen
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 19 Oct 2024 19:00 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lars@cleo.beagle-ears.com (Lars Poulsen)
Newsgroups: comp.os.linux.misc
Subject: What exactly is Snap or Flatpack ?
Date: Sat, 19 Oct 2024 19:00:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
Injection-Date: Sat, 19 Oct 2024 21:00:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3d1040b47c694630bf549906629ffa99";
logging-data="10862"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o57vRqi9sBd65PIUfXQHk45p2cPl1a8c="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:P/boZXpvvFJkqkNudVF5JUSpc1E=
View all headers

I feel like I have been living under a rock for the the last decade
whenever people mention /snap/ and /flatpack/.

1) Are they the same idea as /kubernetes/, and if not, then what is
*that*?
2) What is the difference between them (other than that they are two
incompatible brands, like /apt/ and /yum/ (aka /dnf/) are functionally
the same thing, but incompatible with each other)?

Is it just packaging the executable with all the libraries it references
and a wrapper that sets up paths to those libraries, or is there a
virtual machine involved?

Do these wrapped applications see the full file system, or is there a
shell game of /chroot/ and links or loopback mounts to break out?

At 74 I am old, but I hope to still learn some new things!

Subject: Re: What exactly is Snap or Flatpack ?
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 19 Oct 2024 19:55 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: What exactly is Snap or Flatpack ?
Date: Sat, 19 Oct 2024 19:55:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <vf12sb$tb1$1@dont-email.me>
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
Injection-Date: Sat, 19 Oct 2024 21:55:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="344c4f44b9c501e2b15ec6bc1fd4e003";
logging-data="30049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DY8V0eQhMzNEV9xcCapkD"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:vmS3s3IgZ2eRvzpLb9G6Pj4gK8k=
View all headers

Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
> I feel like I have been living under a rock for the the last decade
> whenever people mention /snap/ and /flatpack/.
>
> 1) Are they the same idea as /kubernetes/, and if not, then what is
> *that*?

In a /similar/ ballpark, but not quite /the same/:

Snap: https://en.wikipedia.org/wiki/Snap_(software)

Flatpak: https://en.wikipedia.org/wiki/Flatpak

> 2) What is the difference between them (other than that they are two
> incompatible brands, like /apt/ and /yum/ (aka /dnf/) are functionally
> the same thing, but incompatible with each other)?

They are very similar to each other, to the point that one looks to be
a NIH syndrome [1] of the other.

> Is it just packaging the executable with all the libraries it references
> and a wrapper that sets up paths to those libraries, or is there a
> virtual machine involved?

Both run inside a "sandbox". So they therefore depend upon whether
your definition of "virtual machine" extends to include "sandboxed"
software.

> Do these wrapped applications see the full file system, or is there a
> shell game of /chroot/ and links or loopback mounts to break out?

Presumably they have a limited view of the native filesystem. The snap
wikipedia page says "limited access to the host system" but does not
define if the "limits" included "limited access to native filesystem".
The Flatpak wikipedia page says "Flatpak[s] need permission to access
.... files" so it somewhat more explicitly implies a limited view of the
native filesystem.

> At 74 I am old, but I hope to still learn some new things!

[1] Not Invented Here

Subject: Re: What exactly is Snap or Flatpack ?
From: Phillip Frabott
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 19 Oct 2024 21:32 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nntp@fulltermprivacy.com (Phillip Frabott)
Newsgroups: comp.os.linux.misc
Subject: Re: What exactly is Snap or Flatpack ?
Date: Sat, 19 Oct 2024 17:32:25 -0400
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <vf18h9$1qgm$1@dont-email.me>
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
<vf12sb$tb1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 19 Oct 2024 23:32:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a0c115cd7bc190a7a5196ee3f730dd9f";
logging-data="59926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eAGCaXHvTiH1UuhH6G2uFmajP6OzFez4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:L7kCHTjHTlQa0adVl0Git7tVrJ8=
In-Reply-To: <vf12sb$tb1$1@dont-email.me>
Content-Language: en-US
View all headers

On 10/19/2024 15:55, Rich wrote:
> Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
>> I feel like I have been living under a rock for the the last decade
>> whenever people mention /snap/ and /flatpack/.
>>
>> 1) Are they the same idea as /kubernetes/, and if not, then what is
>> *that*?
>
> In a /similar/ ballpark, but not quite /the same/:
>
> Snap: https://en.wikipedia.org/wiki/Snap_(software)
>
> Flatpak: https://en.wikipedia.org/wiki/Flatpak
>
>> 2) What is the difference between them (other than that they are two
>> incompatible brands, like /apt/ and /yum/ (aka /dnf/) are functionally
>> the same thing, but incompatible with each other)?
>
> They are very similar to each other, to the point that one looks to be
> a NIH syndrome [1] of the other.
>
>> Is it just packaging the executable with all the libraries it references
>> and a wrapper that sets up paths to those libraries, or is there a
>> virtual machine involved?
>
> Both run inside a "sandbox". So they therefore depend upon whether
> your definition of "virtual machine" extends to include "sandboxed"
> software.
>
>> Do these wrapped applications see the full file system, or is there a
>> shell game of /chroot/ and links or loopback mounts to break out?
>
> Presumably they have a limited view of the native filesystem. The snap
> wikipedia page says "limited access to the host system" but does not
> define if the "limits" included "limited access to native filesystem".
> The Flatpak wikipedia page says "Flatpak[s] need permission to access
> ... files" so it somewhat more explicitly implies a limited view of the
> native filesystem.
>
>> At 74 I am old, but I hope to still learn some new things!
>
> [1] Not Invented Here
>
>
>

Just to add to what has already been said, snap and flatpak packages
tend to include all their dependencies so it is a self-contained
packages that doesn't tend to need dependencies beyond the package
manager itself. If I recall (I don't use flatpaks) they are mostly
statically linked within the pack so regardless of which distribution or
GNU/Linux installation you use, it's compatible (within reason). Based
on the technical definition of a virtual machine (a self-contained
hypervisor that is isolated from the rest of the hardware within the CPU
and memory mapping) it is not a VM. And I don't consider it a container
either (although others will likely disagree). it's just a package that
contains everything the application needs to run. And since it's kept in
a nice package, it's easy to remove as well.

--
Phillip Frabott
----------
- Adam: Is a void really a void if it returns?
- Jack: No, it's just nullspace at that point.
----------

Subject: Re: What exactly is Snap or Flatpack ?
From: Woozy Song
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 20 Oct 2024 00:31 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: suzyw0ng@outlook.com (Woozy Song)
Newsgroups: comp.os.linux.misc
Subject: Re: What exactly is Snap or Flatpack ?
Date: Sun, 20 Oct 2024 08:31:48 +0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vf1j1k$3fbo$1@dont-email.me>
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 20 Oct 2024 02:31:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1c92abe948b384a51f1a0e436ee36d40";
logging-data="114040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WgrwcZfAcY6pD8pQwjtTts8EF986z/Ys="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.19
Cancel-Lock: sha1:G67wW1wIg4Ax/8wmKNC7mTPPGoc=
In-Reply-To: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
View all headers

Lars Poulsen wrote:
> I feel like I have been living under a rock for the the last decade
> whenever people mention /snap/ and /flatpack/.
>
> 1) Are they the same idea as /kubernetes/, and if not, then what is
> *that*?
> 2) What is the difference between them (other than that they are two
> incompatible brands, like /apt/ and /yum/ (aka /dnf/) are functionally
> the same thing, but incompatible with each other)?
>
> Is it just packaging the executable with all the libraries it references
> and a wrapper that sets up paths to those libraries, or is there a
> virtual machine involved?
>
> Do these wrapped applications see the full file system, or is there a
> shell game of /chroot/ and links or loopback mounts to break out?
>
> At 74 I am old, but I hope to still learn some new things!
>

Snap is the work of the devil [Ubuntu/Canonical]

Subject: Re: What exactly is Snap or Flatpack ?
From: Lars Poulsen
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 20 Oct 2024 01:11 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lars@cleo.beagle-ears.com (Lars Poulsen)
Newsgroups: comp.os.linux.misc
Subject: Re: What exactly is Snap or Flatpack ?
Date: Sun, 20 Oct 2024 01:11:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <slrnvh8m5j.319o7.lars@cleo.beagle-ears.com>
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
<vf12sb$tb1$1@dont-email.me> <vf18h9$1qgm$1@dont-email.me>
Injection-Date: Sun, 20 Oct 2024 03:11:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b39cce8543f53c55c4b4499302579713";
logging-data="132693"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SiPEECHVUIMycyEl0rt8eiPlMvP8HdPc="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:FbAY/J/khDm3HhiB9UmDeGxz3Xg=
View all headers

On 2024-10-19, Phillip Frabott <nntp@fulltermprivacy.com> wrote:
> On 10/19/2024 15:55, Rich wrote:
>> Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
>>> I feel like I have been living under a rock for the the last decade
>>> whenever people mention /snap/ and /flatpack/.
>>>
>>> 1) Are they the same idea as /kubernetes/, and if not, then what is
>>> *that*?
>>
>> In a /similar/ ballpark, but not quite /the same/:
>>
>> Snap: https://en.wikipedia.org/wiki/Snap_(software)
>>
>> Flatpak: https://en.wikipedia.org/wiki/Flatpak
>>
>>> 2) What is the difference between them (other than that they are two
>>> incompatible brands, like /apt/ and /yum/ (aka /dnf/) are functionally
>>> the same thing, but incompatible with each other)?
>>
>> They are very similar to each other, to the point that one looks to be
>> a NIH syndrome [1] of the other.
>>
>>> Is it just packaging the executable with all the libraries it references
>>> and a wrapper that sets up paths to those libraries, or is there a
>>> virtual machine involved?
>>
>> Both run inside a "sandbox". So they therefore depend upon whether
>> your definition of "virtual machine" extends to include "sandboxed"
>> software.
>>
>>> Do these wrapped applications see the full file system, or is there a
>>> shell game of /chroot/ and links or loopback mounts to break out?
>>
>> Presumably they have a limited view of the native filesystem. The snap
>> wikipedia page says "limited access to the host system" but does not
>> define if the "limits" included "limited access to native filesystem".
>> The Flatpak wikipedia page says "Flatpak[s] need permission to access
>> ... files" so it somewhat more explicitly implies a limited view of the
>> native filesystem.
>>
>>> At 74 I am old, but I hope to still learn some new things!
>>
>> [1] Not Invented Here
>>
>>
>>
>
> Just to add to what has already been said, snap and flatpak packages
> tend to include all their dependencies so it is a self-contained
> packages that doesn't tend to need dependencies beyond the package
> manager itself. If I recall (I don't use flatpaks) they are mostly
> statically linked within the pack so regardless of which distribution or
> GNU/Linux installation you use, it's compatible (within reason). Based
> on the technical definition of a virtual machine (a self-contained
> hypervisor that is isolated from the rest of the hardware within the CPU
> and memory mapping) it is not a VM. And I don't consider it a container
> either (although others will likely disagree). it's just a package that
> contains everything the application needs to run. And since it's kept in
> a nice package, it's easy to remove as well.

It sounds like it is a great way to create a package that is
self-contained enough that it can be installed without change on a large
variety of distrubutions. That is great for the developer/maintainer.
But for the user, it is great if your distribution has chosen not to
support that application. But if a "native" package is available for
your distribution, it is less attractive.

If you have installed a snap/flatpack package, can you then later
install add-on plugins?

And how does this relate to kubernetes?

Subject: Re: What exactly is Snap or Flatpack ?
From: stepore
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 20 Oct 2024 03:40 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: stepore@be.here.now (stepore)
Newsgroups: comp.os.linux.misc
Subject: Re: What exactly is Snap or Flatpack ?
Date: Sat, 19 Oct 2024 20:40:39 -0700
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vf1u3n$8mv9$1@dont-email.me>
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
<vf12sb$tb1$1@dont-email.me> <vf18h9$1qgm$1@dont-email.me>
<slrnvh8m5j.319o7.lars@cleo.beagle-ears.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 20 Oct 2024 05:40:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="181c9fa210188e5afc75025e7a894b55";
logging-data="285673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CKaiWL71mpSF4Q7rf5AGR"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:jnEfH2k/Vs0YOk6pkBhWpSp6cbg=
Content-Language: en-US
In-Reply-To: <slrnvh8m5j.319o7.lars@cleo.beagle-ears.com>
View all headers

On 10/19/24 18:11, Lars Poulsen wrote:
> And how does this relate to kubernetes?

Snap, flatpak, appimage are distribution-independent software package
formats. They bundle the application with all its required dependencies.

Kubernetes is an example of containerization or "virtualization" on an
operating system level or application-level that includes network,
memory, cpu resources, so that applications can run ( using these
resources ) in isolated userspace and namespace.

Subject: Re: What exactly is Snap or Flatpack ?
From: Charlie Gibbs
Newsgroups: comp.os.linux.misc
Date: Sun, 20 Oct 2024 03:57 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.mixmin.net!news.neodome.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: What exactly is Snap or Flatpack ?
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com>
<vf12sb$tb1$1@dont-email.me> <vf18h9$1qgm$1@dont-email.me>
<slrnvh8m5j.319o7.lars@cleo.beagle-ears.com> <vf1u3n$8mv9$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Lines: 16
Message-ID: <qc%QO.57700$vtH3.46784@fx07.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 20 Oct 2024 03:57:10 UTC
Date: Sun, 20 Oct 2024 03:57:10 GMT
X-Received-Bytes: 1311
View all headers

On 2024-10-20, stepore <stepore@be.here.now> wrote:

> On 10/19/24 18:11, Lars Poulsen wrote:
>
>> And how does this relate to kubernetes?
>
> Snap, flatpak, appimage are distribution-independent software package
> formats. They bundle the application with all its required dependencies.

So does static linking. :-)

--
/~\ Charlie Gibbs | We'll go down in history as the
\ / <cgibbs@kltpzyxm.invalid> | first society that wouldn't save
X I'm really at ac.dekanfrus | itself because it wasn't cost-
/ \ if you read it the right way. | effective. -- Kurt Vonnegut

Subject: Re: What exactly is Snap or Flatpack ?
From: Computer Nerd Kev
Newsgroups: comp.os.linux.misc
Organization: Ausics - https://newsgroups.ausics.net
Date: Sun, 20 Oct 2024 21:02 UTC
References: 1 2 3 4 5 6
Message-ID: <67156fd8@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: What exactly is Snap or Flatpack ?
Newsgroups: comp.os.linux.misc
References: <slrnvh80eq.2vpb7.lars@cleo.beagle-ears.com> <vf12sb$tb1$1@dont-email.me> <vf18h9$1qgm$1@dont-email.me> <slrnvh8m5j.319o7.lars@cleo.beagle-ears.com> <vf1u3n$8mv9$1@dont-email.me> <qc%QO.57700$vtH3.46784@fx07.iad>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 21 Oct 2024 07:02:17 +1000
Organization: Ausics - https://newsgroups.ausics.net
Lines: 21
X-Complaints: abuse@ausics.net
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!news.ausics.net!not-for-mail
View all headers

Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> On 2024-10-20, stepore <stepore@be.here.now> wrote:
>>> And how does this relate to kubernetes?
>>
>> Snap, flatpak, appimage are distribution-independent software package
>> formats. They bundle the application with all its required dependencies.
>
> So does static linking. :-)

I'm not sure about Snap and Flatpack, but from looking at AppImage
many of the packages for it are for programs that won't build with
static linking. It also does still leave some libraries to be
provided by the system by default, like OpenSSL.

I explored making AppImages to make a portable build of a large GUI
program that wouldn't link statically, but jeeze it was a whole
lot more work than making a static binary.

--
__ __
#_ < |\| |< _#

1

rocksolid light 0.9.8
clearnet tor