Skip to content

Instantly share code, notes, and snippets.

@grahamperrin
Last active June 8, 2024 16:50
Show Gist options
  • Save grahamperrin/6ac7b6832a2fe83a2514a1ee53f47241 to your computer and use it in GitHub Desktop.
Save grahamperrin/6ac7b6832a2fe83a2514a1ee53f47241 to your computer and use it in GitHub Desktop.
Using descriptive repository names for FreeBSD-provided and locally-built packages

Using descriptive repository names for FreeBSD-provided and locally-built packages

Three distinctive names

% pkg -vv | grep ': {' | sort
  FreeBSD-base: { 
  FreeBSD-ports: { 
  local-poudriere: { 
% 

Corresponding paths and filenames

  • /usr/local/etc/pkg/repos/FreeBSD-base.conf
  • /etc/pkg/FreeBSD-ports.conf
  • /usr/local/etc/pkg/repos/poudriere.conf
% cd /usr/local/etc/pkg/repos
% file ./FreeBSD-base.conf /etc/pkg/FreeBSD-ports.conf /etc/pkg/FreeBSD.conf ./poudriere.conf
./FreeBSD-base.conf:         ASCII text
/etc/pkg/FreeBSD-ports.conf: symbolic link to /etc/pkg/FreeBSD.conf
/etc/pkg/FreeBSD.conf:       ASCII text
./poudriere.conf:            JSON text data
% cd
% 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment