I've installed Poudriere and started building my own repository. How do you properly use the default FreeBSD repo and your own repo seamlessly?
For example, here is my repo.conf file on the local machine:
If I keep the default FreeBSD.conf repo file enabled:
How do I direct
For example, say I want to install nginx-devel from my own repo (because I've built the package with custom options) but install perl5 from the default FreeBSD repo (because I use the default options) how is this achieved?
I see no point in building custom packages with the default build options as they're readily available from the default FreeBSD repo, so would like to use both repositories on an as needed basis. But remembering and having to manually disable and enable the right one before each
From pkg(8):
How do you set your own repository as the "first one"?
Additionally, the custom built packages and repository are stored on the host despite being built in the jail. What's the most effective way of making this repository accessible from a web server inside a jail on the host system?
For example, here is my repo.conf file on the local machine:
cat /usr/local/etc/pkg/repos/repo.conf
Code:
repo: {
url : "file:///zbank/poudriere/data/packages/10x64-default",
enabled : yes,
signature_type : "PUBKEY",
mirror_type : NONE
pubkey : "/usr/local/etc/ssl/certs/repo.crt"
}
If I keep the default FreeBSD.conf repo file enabled:
cat /etc/pkg/FreeBSD.conf
Code:
# $FreeBSD: releng/10.0/etc/pkg/FreeBSD.conf 258710 2013-11-28 14:24:26Z gjb $
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
How do I direct
pkg to install which packages from which repository? Or do you have to manually disable (by editing the ?.conf file and changing enabled to no) whichever repo you don't want the packages to be installed from before issuing any pkg install commands?For example, say I want to install nginx-devel from my own repo (because I've built the package with custom options) but install perl5 from the default FreeBSD repo (because I use the default options) how is this achieved?
I see no point in building custom packages with the default build options as they're readily available from the default FreeBSD repo, so would like to use both repositories on an as needed basis. But remembering and having to manually disable and enable the right one before each
pkg install seems inefficient. Further, it seems pkg upgrade could turn into a real mess when using multiple repositories.From pkg(8):
Code:
install
Install a package from a remote package repository. If a package
is found in more than one remote repository, then installation
happens from the first one. Downloading a package is tried from
each package repository in turn, until the package is success-
fully fetched.
How do you set your own repository as the "first one"?
Additionally, the custom built packages and repository are stored on the host despite being built in the jail. What's the most effective way of making this repository accessible from a web server inside a jail on the host system?