Artix Linux Forum

Artix Linux => Package management => Topic started by: mardiyah on 13 September 2023, 04:21:21

Title: The code or CLI to retrieve list of repos
Post by: mardiyah on 13 September 2023, 04:21:21
How/what is  the code or CLI to retrieve this list / repos e.g:

system
lib32
omniverse
world
galaxy
extra


(or the more complete one alike)
Title: Re: The code or CLI to retrieve list of repos
Post by: phoenix_king_rus on 14 September 2023, 19:17:03
Code: [Select]
pacman -Sl <repo>
Title: Re: The code or CLI to retrieve list of repos
Post by: Ambie on 15 September 2023, 08:20:45
I think the only way to get that list is parsing of pacman.conf, something like that:

Code: [Select]
grep -v "^#\|options" /etc/pacman.conf | grep -F "["

[system]
[world]
[galaxy]
[lib32]