For discussion of Alpine Linux development and developer support

6 5

[alpine-devel] apk: package "grouping"?

Steffen Nurpmeso
Details
Message ID
<20181113150523.6IZfu%steffen@sdaoden.eu>
Sender timestamp
1542121523
DKIM signature
missing
Download raw message
Hello!

I wonder how you manage pools of boxes with identical setup.
I.e., imagine two (:-} boxes with absolutely identical setup
except for the hardware driver related stuff -- i manually merge
in the /etc/apk/world, but having the possibility to "apk add
--tag FOO bar" so that FOO "is in /etc/apk/foo.world", so that
foo.world can simply be shared in between boxes, that would be
tremendous.  Is this possible today?, and if so, i really would
like to know how to!

Thank you for all the work!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Bobby Bingham
Details
Message ID
<20181113181245.GA15037@gordon>
In-Reply-To
<20181113191851.1fec6483@vostro> (view parent)
Sender timestamp
1542132765
DKIM signature
missing
Download raw message
On Tue, Nov 13, 2018 at 07:18:51PM +0200, Timo Teras wrote:
> Hi,
>
> I generally do my own meta-packages and host internal repository. This
> allows also updating the meta-packages pretty easily.
>
> Doing apk/world.d/ or similar is an interesting idea too. But I need to
> think about it more. Mostly it's if there's an use case where this
> works better than the meta-packages in own repository.
>
> Thoughts?

This sounds a lot like the concept of package sets in portage, and is
one of the things I miss the most coming from Gentoo.

One place I find it useful is when trying to build a piece of software
that isn't packaged.  I need to install a number of *-dev packages that
I'll just uninstall after I get the build working.  There may be a large
number of them, and I may keep discovering more dependencies as I go,
both of which make it harder to keep track of the packages to uninstall
at the end.  By adding them via a package set, it becomes trivial to
just uninstall the whole set at the end.

I do have a local package repository, but creating a throw away package
whose entire purpose is to be easy to uninstall has always seemed like
overkill.

--
Bobby


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Paul Zillmann
Details
Message ID
<0e03383f-4b67-dd9c-62b5-de1f8adce3b0@h6g.de>
In-Reply-To
<20181113150523.6IZfu%steffen@sdaoden.eu> (view parent)
Sender timestamp
1542125265
DKIM signature
missing
Download raw message
Hello Steffen,

I would do it with Ansible, parallel ssh (pssh) or lbu.

- Paul

Am 13.11.18 um 16:05 schrieb Steffen Nurpmeso:
> Hello!
>
> I wonder how you manage pools of boxes with identical setup.
> I.e., imagine two (:-} boxes with absolutely identical setup
> except for the hardware driver related stuff -- i manually merge
> in the /etc/apk/world, but having the possibility to "apk add
> --tag FOO bar" so that FOO "is in /etc/apk/foo.world", so that
> foo.world can simply be shared in between boxes, that would be
> tremendous.  Is this possible today?, and if so, i really would
> like to know how to!
>
> Thank you for all the work!
>
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)
>
>
> ---
> Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> Help:         alpine-devel+help@lists.alpinelinux.org
> ---
>


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Timo Teras
Details
Message ID
<20181113191851.1fec6483@vostro>
In-Reply-To
<20181113150523.6IZfu%steffen@sdaoden.eu> (view parent)
Sender timestamp
1542129531
DKIM signature
missing
Download raw message
Hi,

I generally do my own meta-packages and host internal repository. This
allows also updating the meta-packages pretty easily.

Doing apk/world.d/ or similar is an interesting idea too. But I need to
think about it more. Mostly it's if there's an use case where this
works better than the meta-packages in own repository.

Thoughts?

Timo

On Tue, 13 Nov 2018 16:05:23 +0100
Steffen Nurpmeso <steffen@sdaoden.eu> wrote:

> Hello!
> 
> I wonder how you manage pools of boxes with identical setup.
> I.e., imagine two (:-} boxes with absolutely identical setup
> except for the hardware driver related stuff -- i manually merge
> in the /etc/apk/world, but having the possibility to "apk add
> --tag FOO bar" so that FOO "is in /etc/apk/foo.world", so that
> foo.world can simply be shared in between boxes, that would be
> tremendous.  Is this possible today?, and if so, i really would
> like to know how to!
> 
> Thank you for all the work!
> 
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)
> 
> 
> ---
> Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> Help:         alpine-devel+help@lists.alpinelinux.org
> ---
> 



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Steffen Nurpmeso
Details
Message ID
<20181113185431.JCuei%steffen@sdaoden.eu>
In-Reply-To
<20181113191851.1fec6483@vostro> (view parent)
Sender timestamp
1542135271
DKIM signature
missing
Download raw message
Timo Teras wrote in <20181113191851.1fec6483@vostro>:
 |I generally do my own meta-packages and host internal repository. This
 |allows also updating the meta-packages pretty easily.

I do not really understand the latter (i still struggle how i can
share the binary cache in between the machines, but i will find
out).

The former i thought about too, but of course you need to create
meta packages in one go, if i understand it correctly.  This
does not work if you add in packages later, for example, about 15
minutes ago i had to add in "kbd" to gain some more Unicode
characters on the Linux framebuffer.  Now i need this over there,
too ...

 |Doing apk/world.d/ or similar is an interesting idea too. But I need to
 |think about it more. Mostly it's if there's an use case where this
 |works better than the meta-packages in own repository.

Host internal repository and binary cache, i will look around
this.  Thanks.

 |Thoughts?

Well...  No.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Steffen Nurpmeso
Details
Message ID
<20181113185613.hRkhK%steffen@sdaoden.eu>
In-Reply-To
<0e03383f-4b67-dd9c-62b5-de1f8adce3b0@h6g.de> (view parent)
Sender timestamp
1542135373
DKIM signature
missing
Download raw message
Paul Zillmann wrote in <0e03383f-4b67-dd9c-62b5-de1f8adce3b0@h6g.de>:
 |Hello Steffen,
 |
 |I would do it with Ansible, parallel ssh (pssh) or lbu.

lbu is also very cool.
The rest not me. :)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa
Details
Message ID
<20181127124322.23d7aba7@ncopa-desktop.copa.dup.pw>
In-Reply-To
<20181113181245.GA15037@gordon> (view parent)
Sender timestamp
1543319002
DKIM signature
missing
Download raw message
On Tue, 13 Nov 2018 12:12:45 -0600
Bobby Bingham <koorogi@koorogi.info> wrote:

> On Tue, Nov 13, 2018 at 07:18:51PM +0200, Timo Teras wrote:
> > Hi,
> >
> > I generally do my own meta-packages and host internal repository. This
> > allows also updating the meta-packages pretty easily.
> >
> > Doing apk/world.d/ or similar is an interesting idea too. But I need to
> > think about it more. Mostly it's if there's an use case where this
> > works better than the meta-packages in own repository.
> >
> > Thoughts?  
> 
> This sounds a lot like the concept of package sets in portage, and is
> one of the things I miss the most coming from Gentoo.
> 
> One place I find it useful is when trying to build a piece of software
> that isn't packaged.  I need to install a number of *-dev packages that
> I'll just uninstall after I get the build working.  There may be a large
> number of them, and I may keep discovering more dependencies as I go,
> both of which make it harder to keep track of the packages to uninstall
> at the end.  By adding them via a package set, it becomes trivial to
> just uninstall the whole set at the end.

I use `apk add --virtual .mydeps foo-dev bar-dev` and when done: `apk
del .mydeps` for this.

But it seems like you cannot append deps afterwards.

> 
> I do have a local package repository, but creating a throw away package
> whose entire purpose is to be easy to uninstall has always seemed like
> overkill.
> 
> --
> Bobby
> 
> 
> ---
> Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> Help:         alpine-devel+help@lists.alpinelinux.org
> ---
> 



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---