You are not logged in.

#1 2025-06-30 08:33:03

MS1
Member
Registered: 2018-02-02
Posts: 93

possible to clone [core] git

I am a git newb. It looks like each package has its own gitlab repo. Is there a way to clone all packages in [core] and keep them updated?

Offline

#2 2025-06-30 08:53:55

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,937

Re: possible to clone [core] git

[core] repo cointains binaries, the git repos contain PKGBUILDs and other files needed to create the binary packages.

Do you want the files to build stuff or the binaries ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-06-30 09:00:20

MS1
Member
Registered: 2018-02-02
Posts: 93

Re: possible to clone [core] git

I would like to have a clone of all PKGBUILD and related files from [core].

Offline

#4 2025-06-30 09:01:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,540
Website

Re: possible to clone [core] git

pkgctl repo clone $(pacman -Slq core)

Offline

#5 2025-06-30 09:09:30

MS1
Member
Registered: 2018-02-02
Posts: 93

Re: possible to clone [core] git

Thank you Allan. How would I update the clone to keep them in sync?

Offline

#6 2025-06-30 09:16:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,540
Website

Re: possible to clone [core] git

They are git repos, so just pull...

for i in *; do
  pushd $i
  git pull
  popd
done

Offline

#7 2025-06-30 14:27:04

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,173
Website

Re: possible to clone [core] git

Allan wrote:
pkgctl repo clone $(pacman -Slq core)

It's not that easy but almost there as we only have one repo per pkgbase, so one should also do something like 'expac -S "%e"':

pkgctl repo clone $(pacman -Slq core | xargs expac -S "%e" | sort --unique)

Also potentially you should use "--protocol https" with the clone if you don't have SSH key auth set up.

MS1 wrote:

I would like to have a clone of all PKGBUILD and related files from [core].

But why do you want to have this set of clones?

Last edited by gromit (2025-06-30 14:28:58)

Offline

Board footer

Powered by FluxBB