Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm gonna write a script to pull down the package files, now how can I install them?

Can I get pkg to use a file:// URL instead of an http:// URL?

Alternatively, Is there a better format to do this with? For example, can a stand-alone pkg file be created, given the manifest, and all the individual files?

In case you wondered, I do not want to create a mirror of the repo.

share|improve this question
Wish I could tell you, can't get the damn thing to get past the "dots" in a Virtualbox guest :/ – Tim Jan 9 '12 at 19:40
Took me awhile to figure out what you meant. :) (To those who don't know, that is when attempting to boot to a Solaris image, there are dots while it reads in the OS) – George Bailey Jan 9 '12 at 19:47
up vote 0 down vote accepted

I'm going to point to my answer on your other post. You can set up a pkg.depotd instance locally and add that as a publisher, but pkg cannot install directly from the filesystem. This is mostly because the package server provides extra metadata as well as the pkg search functionality.

The local pkg server doesn't have to be a complete mirror. As I said in the other post, pkgrecv can just pull down what you want (and its dependencies).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.