IPS clients can only install packages from IPS repositories. So, if you're not interested in adding the remote repository as a publisher, fortunately there is another option, which is to create an IPS archive (p5p).
Keep in mind an IPS archive is not like a Linux RPM. You cannot for example install software directly from an IPS archive. But you can copy the file to other systems, such as a non-networked system. Think of an IPS archive as a portable repository because that's how you'll be using it. It's only after you create a local repository from the IPS archive file, can you then consume packages from it.
IPS archives allow you to:
- Download one or more packages (along with all necessary dependencies) into a p5p archive file.
- Create a local repository based on the contents of the p5p archive file.
- Install packages from the locally created repository.
Say for example, you're interested in testing the latest version of a package. Then do something like this:
pkgrecv -s http://example.com:10000 -d ~/firefox_test.p5p -a -r pkg://userland/web/browser/firefox@45.3.0-2016.0.0.0:20160817T064143Z
Check the contents of the package with: pkgrepo -s ~/firefox_test.p5p list
or you can use: pkg list -f -g ~/firefox_test.p5p
Add the IPS archive as a local repository with: pkg set-publisher -p ~/firefox_test.p5p
And finally to install a specific version of firefox, do use: pkg install firefox@45.3.0-2016.0.0.0:20160817T064143