PKG Mirror Locations

Everything related to Installing and maintaining software.
gumis2476
Posts: 1
Joined: Sat Feb 12, 2022 5:35 am

Re: PKG Mirror Locations

Post by gumis2476 »

Hi @grahamperrin

Try this:
create file /usr/local/etc/pkg/repos/GhostBSD.conf

inside the file:

GhostBSD: { enabled: no }
GhostBSD_FR: {
url: "http://pkg.fr.ghostbsd.org/stable/${ABI}/latest",
enabled: yes
}


then run command:
# pkg update -f

result should be like this:
Updating GhostBSD_FR repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 6 MiB 3.3MB/s 00:02
Processing entries: 100%
GhostBSD_FR repository update completed. 31401 packages processed.
All repositories are up to date.

Have a nice day :)
grahamperrin
Posts: 105
Joined: Sun Sep 04, 2016 6:06 am

Preferring the GhostBSD_FR repository

Post by grahamperrin »

That seems to enable the fr repository without disabling the default repository.

Code: Select all

pkg -vv | grep -e url -e enabled -e priority
Instead:

Code: Select all

echo "GhostBSD: { enabled: no }" > /usr/local/etc/pkg/repos/GhostBSD.conf
cd /usr/local/etc/pkg/repos
mv GhostBSD.conf.fr GhostBSD_FR.conf
Post Reply