You are not logged in.

#1 2025-06-14 10:59:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,710
Website

Using pacman to sync a single repo rather than all in pacman.conf

Is it possible to call pacman to -Sy a particular repo rather than all repos? For example, I have the following defined:

[chroot_local]
SigLevel = Optional TrustAll
Server = file:///var/lib/ccm

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

I only want to have the chroot_local refreshed from a

pacman -Sy

I don't see anything in the man page about this but figured it's worth asking.

Last edited by graysky (2025-06-14 11:00:22)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2025-06-14 11:28:11

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

Re: Using pacman to sync a single repo rather than all in pacman.conf

I vaguely remember developer apg mentioning that was possible with one of his tools.

Check https://github.com/andrewgregory/pacutils .


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-14 17:29:22

NuSkool
Member
Registered: 2015-03-23
Posts: 269

Re: Using pacman to sync a single repo rather than all in pacman.conf

graysky wrote:

Is it possible to call pacman to -Sy a particular repo rather than all repos?

Lone_Wolf wrote:

I vaguely remember developer apg mentioning that was possible with one of his tools.

Check https://github.com/andrewgregory/pacutils .

I use pacsync of the pacutils package to sync my aur repo. 
Never tried it on the official repos till now.
Seems to work though, but not sure this is what you're looking for. YMMV and the obligatory "partial upgrades are bad"  warning for readers. 

$ sudo pacsync core
[sudo] password for jeff: 
core.db (119013/119013) 100%

Optionally, would creating, pointing pacman to a temp config file possibly be a solution viable 'pacman only' workaround?

Last edited by NuSkool (2025-06-14 17:46:56)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

Board footer

Powered by FluxBB