Here is what I'm trying to do:
Maintain my own repository for our few hundred servers and VMs (and for our clients). There are a number of ports which we need to set custom options for (e.g. enable LDAP support, set preferred DB back end, etc.). There is also the issue of security updates for key pieces of software. However we're looking at 35-40 ports/packages at the moment (plus dependencies of course), and don't have the time or resources to build the entire ports tree every day to keep things updated for security patches.
In pkg.conf I've got this (as the defaults as far as I can tell otherwise suit our purposes):
Then in /usr/local/etc/pkg/repos I have two files:
I found that (at least in my testing) the 'last' file would get priority and if a package wasn't found it would go backwards through the order (i.e. it would use our ateamrepo, then fall back to the FreeBSD one).
All of this was pure guess and test based on the documentation and man pages. I have yet to find a conclusive howto for using multiple repositories (that isn't old and outdated), much less how do I set the 'priority' like this (or if it's even possible). Since we've deployed this on a wider scale I have found now in practice that unless I manually specify our own repository, sometimes (seemingly randomly -- though I'm sure it's not) it will fall back to the FreeBSD repository for packages which are in both repositories -- the worst part being it will use FreeBSD's repository even when our own repository has a later version.
In my initial research the only thing close to finding some answers I found was this, which has inaccurate/old information: http://forums.freebsd.org/viewtopic.php ... es#p212575.
Has anyone got any tips or know of a place with clearer documentation on this specific objective (or even if it's doable the way I am describing)?
Maintain my own repository for our few hundred servers and VMs (and for our clients). There are a number of ports which we need to set custom options for (e.g. enable LDAP support, set preferred DB back end, etc.). There is also the issue of security updates for key pieces of software. However we're looking at 35-40 ports/packages at the moment (plus dependencies of course), and don't have the time or resources to build the entire ports tree every day to keep things updated for security patches.
In pkg.conf I've got this (as the defaults as far as I can tell otherwise suit our purposes):
Code:
PKG_MULTIREPOS : YES
Then in /usr/local/etc/pkg/repos I have two files:
Code:
00-freebsd.conf
10-ateamrepo-9_1-amd64.conf
I found that (at least in my testing) the 'last' file would get priority and if a package wasn't found it would go backwards through the order (i.e. it would use our ateamrepo, then fall back to the FreeBSD one).
All of this was pure guess and test based on the documentation and man pages. I have yet to find a conclusive howto for using multiple repositories (that isn't old and outdated), much less how do I set the 'priority' like this (or if it's even possible). Since we've deployed this on a wider scale I have found now in practice that unless I manually specify our own repository, sometimes (seemingly randomly -- though I'm sure it's not) it will fall back to the FreeBSD repository for packages which are in both repositories -- the worst part being it will use FreeBSD's repository even when our own repository has a later version.
In my initial research the only thing close to finding some answers I found was this, which has inaccurate/old information: http://forums.freebsd.org/viewtopic.php ... es#p212575.
Has anyone got any tips or know of a place with clearer documentation on this specific objective (or even if it's doable the way I am describing)?