You are not logged in.

#1 2021-07-07 10:02:51

sshaikh
Member
Registered: 2019-07-03
Posts: 51

[SOLVED] "custom" base install across instances

I have multiple Arch installs, and wish to keep a common set of packages installed on each of them. Is there a canonical way to achieve this?

My initial thought was to create my own meta package. The pros and cons of this approach are discussed here:

https://disconnected.systems/blog/archl … ta-package.

Although great for stable lists, this seems like a lot of overhead for a list that will probably be in flux, even though I do have a pretty mature aurutils/local repo setup already.

I use git for dotfiles, and leveraging that workflow seems to be a more appropriate approach, eg to just maintain a list of package names to sync and tap into during my regular maintenance cycle and will probably investigate that approach. I presume pacman can consume a list already, but it would be really nice if -Syu would do it somehow for me.

I understand that removing packages from the list is a more difficult problem but am happy to keep that a manual process for now.

What approach do users here take?

Last edited by sshaikh (2021-07-07 11:54:13)

Offline

#2 2021-07-07 11:19:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,342

Re: [SOLVED] "custom" base install across instances

pacman is very powerful and lots of goodies are found on https://wiki.archlinux.org/title/Pacman/Tips_and_tricks .
You'll prob be interested in section 2.5 & 2.6 .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-07-07 11:53:59

sshaikh
Member
Registered: 2019-07-03
Posts: 51

Re: [SOLVED] "custom" base install across instances

Exactly what I needed and adds more weight to the textfile vs meta-package choice.

I wouldn't want /all/ packages sync'd, just a subset so the list would probably be curated manually. A meta-package might possibly deal with removal elegantly though.

At this point the task becomes too trivial to ask for alternatives, but I'd still be interested in knowing how others do this.

Last edited by sshaikh (2021-07-07 11:55:42)

Offline

#4 2021-07-07 12:23:13

Alad
Wiki Admin/IRC Op/TU
From: Bagelstan
Registered: 2014-05-04
Posts: 2,198
Website

Re: [SOLVED] "custom" base install across instances

You can automate creation/update of metapackages (e.g. from a list) with makepkg-meta:

https://github.com/andrewgregory/makepkg-meta


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Honest Alad's Package Emporium—Now with added bugs! (Grand reopening: December 1st 2018)

Offline

Board footer

Powered by FluxBB