Solved how to add custom repository?

Hi, my again...with this , I give up using the default mirror setup in fbsd instalation, allways works fine but this year(in some point) was a nightmare for me, so , I'am trying to use a custom repo , and
PHP:
pkg0.bra
is the fastest one, but cannot add it

fastest_pkg says :

/usr/local/etc/pkg/repos/FreeBSD.conf

Code:
FreeBSD: { url: "http://pkg0.bra.freebsd.org/${ABI}/quarterly", mirror_type: "NONE" }

but dont seems to work

and if I copy the default Freebsd.conf file to /usr/local/etc/pkg/repos like this:

Code:
FreeBSD-ports: {
  url: "pkg+https://pkg.bra0.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.bra0.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}


I get this errors:

Code:
Updating FreeBSD-ports repository catalogue...
pkg: Repository FreeBSD-ports has a wrong packagesite, need to re-create database
pkg: SRV lookup failed for '_https._tcp.pkg.bra0.freebsd.org', falling back to https://pkg.bra0.freebsd.org
pkg: SRV lookup failed for '_https._tcp.pkg.bra0.freebsd.org', falling back to https://pkg.bra0.freebsd.org


FreeBSD-15.1-RELEASE

any hand on this?
 
Oh, note the name change of the repositories. Before 15.0 the repository was named FreeBSD, with 15.0 onward it's FreeBSD-ports. You have used the old name in your /usr/local/etc/pkg/repos/FreeBSD.conf.
 
I suspect ports-mgmt/fastest_pkg isn't aware of the name change and still used the old repository name.

Yes, fastest_pkg use the old syntax

and done!!

pkg -vv

Code:
Repositories:
  FreeBSD-ports: {
    url             : "http://pkg0.bra.freebsd.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-ports-kmods: {
    url             : "http://pkg0.bra.freebsd.org/FreeBSD:15:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_1",
    enabled         : no,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
  }

/usr/local/etc/pkg/repos/FreeBSD.conf

Code:
FreeBSD-ports: { url: "http://pkg0.bra.freebsd.org/${ABI}/quarterly", mirror_type: "NONE" }
FreeBSD-ports-kmods: { url: "http://pkg0.bra.freebsd.org/${ABI}/quarterly", mirror_type: "NONE" }

(I added FreeBSD-ports-kmods too)


:) , thanks!!!
 
wow, now I have this "duplicated" package problem

Code:
Checking integrity... done (90 conflicting)                                                                                               
  - mozjpeg-4.1.5 [FreeBSD-ports] conflicts with jpeg-turbo-3.1.4.1 [installed] on /usr/local/bin/cjpeg                                   
  - mozjpeg-4.1.5 [FreeBSD-ports-kmods] conflicts with jpeg-turbo-3.1.4.1 [installed] on /usr/local/bin/cjpeg                             
  - sqlite-icu-3.54.1,1 [FreeBSD-ports] conflicts with sqlite3-3.53.4,1 [installed] on /usr/local/bin/sqldiff                             
  - sqlite-icu-3.54.1,1 [FreeBSD-ports-kmods] conflicts with sqlite3-3.53.4,1 [installed] on /usr/local/bin/sqldiff

just try to install gimp, It let me choose on stop or continue
 
The URL for FreeBSD-ports-kmods points to the same URL as FreeBSD-ports. It should point to a minor version specific repository. The path should be ${ABI}/kmods_quarterly_${VERSION_MINOR}, not ${ABI}/quarterly. That's why things show up twice (doesn't solve the conflict but does solve the 'duplicates')
 
The URL for FreeBSD-ports-kmods points to the same URL as FreeBSD-ports. It should point to a minor version specific repository. The path should be ${ABI}/kmods_quarterly_${VERSION_MINOR}, not ${ABI}/quarterly. That's why things show up twice (doesn't solve the conflict but does solve the 'duplicates')

so simple mistake haha, thanks!!!

marked as solved
 
Back
Top