Discovering the hash part of a file name of a remote package (was: How to install base-dbg post-install?)
Graham Perrin <[email protected]> Sun, 14 Jun 2026 11:16:43 +0100
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <[email protected]> |
On 13/06/2026 18:01, Mark Millard wrote: > On 6/13/26 06:24, Graham Perrin wrote: >> On 20/05/2026 01:18, Craig Leres wrote: >>> … >>> >>> Is there a more straightforward way to install base-dbg? >> >> An example for 15.1-RELEASE on AMD64, with pkg 2.7.5: >> >> pkg install -U https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_1/Hashed/FreeBSD-set-base-dbg-15.1~8d76e9b704.pkg >> >> >> How did you figure out the: FreeBSD-set-base-dbg-15.1~8d76e9b704.pkg >> In particular the: 8d76e9b704 On a pkgbase system with the package already installed: pkg clean -a pkg -d upgrade -fFy FreeBSD-set-base-dbg Output from the second command included (for example): DBG(1)[2328]> (fetch) Request to fetch pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_1/./Hashed/FreeBSD-set-base-dbg-15.1~8d76e9b704.pkg DBG(1)[2328]> (fetch) libfetch> connecting DBG(1)[2328]> (fetch) libfetch> fetching from: https://pkgmir.geo.freebsd.org/FreeBSD:15:amd64/base_release_1/Hashed/FreeBSD-set-base-dbg-15.1~8d76e9b704.pkg with opts "i" Then I changed pkgmir.geo.freebsd.org to pkg.freebsd.org More simply, if already cached: root@clean:~ # pkg clean -an | grep FreeBSD-set-base-dbg /var/cache/pkg/FreeBSD-set-base-dbg-15.1~8d76e9b704.pkg /var/cache/pkg/FreeBSD-set-base-dbg-15.1.pkg root@clean:~ # I'm fairly certain that a much more methodical approach was posted a few months ago, I doubt that I'll be able to find it. IIRC it might have involved extracting data.pkg and then working with its content.