Related: Write to a USB drive from the URL of a compressed disc image.

The example below assumes that your USB drive is at /dev/da0.

Run commands as the superuser.

  1. mkdir /media/aninstaller
  2. mount_cd9660 /dev/da0 /media/aninstaller
  3. mkdir -p /usr/local/etc/pkg/repos
  4. ee /usr/local/etc/pkg/repos/aninstaller.conf
  5. pkg bootstrap --yes -r aninstaller
  6. pkg update --repository aninstaller
  7. pkg rquery -r aninstaller "%o%n" | sort | less

You’ll get a list of available packages. Key q to quit the pager.

Then use pkg as you normally would, but limited to the aninstaller repo. For example:

  • pkg install -r aninstaller firefox

Content for the aninstaller.conf file:

aninstaller: {
  url: "file:////media/aninstaller/packages/FreeBSD:14:amd64",
  REPO_AUTOUPDATE: "false",
  mirror_type: "none",
  enabled: yes
}

Important: switch from yes, to no, after temporarily using the USB drive as a source for the repo.


Some manual pages:

You are viewing a single thread.
View all comments
1 point
*

At https://www.freebsdmall.com/cgi-bin/fm/bsddvd14.1:

… How to install packages from the disc: …

Plus, there’s a simpler, three-step routine if using the medium (not necessarily a disc) after installation of the OS – before exiting the installer.

  1. In the Manual Configuration dialogue, choose Yes
  2. /bin/csh
  3. setenv REPOS_DIR /dist/packages/repos

– then use pkg commands as normal.

You’ll have the DVD repo alone – with an archaic name, FreeBSD_install_cdrom – none of the online repos. This offline repo includes things such as graphics/drm-515-kmod, but not things such as x11/nvidia-driver. We can’t have everything offline in this way, DVD image space is constrained.

When you want no more from the offline DVD repo:

  • exit

– then, if an Internet connection was gained during installation, online repos will be available.

permalink
report
reply

BlendIT BSD Cafe - FreeBSD

!freebsd@blendit.bsd.cafe

Create post

Welcome to the “FreeBSD” community at the BSD Cafe BlendIT server!

Join us in our bustling virtual cafe, where we savor the finest virtual pastries and discuss all things FreeBSD. We’re thrilled to have you here, and we hope this place becomes your go-to spot for all matters concerning FreeBSD. Whether you’re a seasoned FreeBSD enthusiast, a curious newcomer, or simply intrigued by the world of BSD operating systems, this space is open for discussions, questions, and knowledge exchange. Feel free to introduce yourself, pose questions, share your experiences, or engage in conversations about FreeBSD’s robustness, performance, and its thriving community. We foster a warm and respectful environment where everyone can learn and contribute. So, take a seat in our bustling cafe, treat yourself to a virtual pastry, and let’s dive into the exciting world of FreeBSD together! Your insights and questions are highly valued, and we eagerly anticipate enlightening conversations within this community.

Community stats

  • 12

    Monthly active users

  • 49

    Posts

  • 53

    Comments