Keep/install/exclude soft from ports and packages

bryn1u

Well-Known Member

Thanks: 9
Messages: 336

#1
Hello guys,

I have installed version of PHP 7.1 by pkg. When I want to install nagios then nagios is forcing remove php7.1 and install PHP version 5.6. The only way is use packages and ports. But the problem is when some version is available to update and if I want to update by portmaster, all installed version will be updated by portmaster. For portmaster it doesn't matter if it's installed from ports or pkg, everything will be updated.. My question is. Can I keep files installed from pkg only for pkg and the same for ports? If not is there any way to create some whitelist and put there package to update only for pkg? I know solution like pkg lock. It isn't good enough because packages don't want to be updated in anyway. I would be graceful for some advice.
 

MarcoB

Well-Known Member

Thanks: 90
Messages: 333

#2
Portmaster has the "-x" option to exclude the upgrade (or downgrade in your case) of ports. I'm not sure if this works for dependencies of ports (php is a dependency of nagios).

Or maybe you can try setting
Code:
DEFAULT_VERSIONS+= php=7.1
in /etc/make.conf.
 

phoenix

Administrator
Staff member
Administrator
Moderator

Thanks: 1,164
Messages: 3,985

#3
Binary packages are built using the default versions for things, and the default options.

Currently, PHP 5.6 is the default, so any package that requires PHP will depend on version 5.6.

If you need a different version of PHP, then you'll need to build your own packages. This is where things like synth and poudriere come into play.

Set your default versions to what you need, and build all the packages you need into a custom repo. Then install the packages from there.
 

obsigna

Aspiring Daemon

Thanks: 443
Messages: 779

#4
With respect to the installation of net-mgmt/nagios, the way to go is to edit /etc/make.conf as MarcoB suggested and then issue # cd net-mgmt/nagios; make install clean.

Your other questions about dual mode maintenance (binary packages and building from source) bubble up quite frequently in this forum, and just yesterday, I wrote up my take on this in a BLog post: FreeBSD Dual Mode updating of the installed ports collection.
 

obsigna

Aspiring Daemon

Thanks: 443
Messages: 779

#7
Please try again, yesterday I tried to switch the WordPress system from MySQL to MariaDB, and I miserably failed, so instead of a few minutes of downtime, I sent my service off for a few hours -- I am sorry.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,335
Messages: 27,504

#8
yesterday I tried to switch the WordPress system from MySQL to MariaDB, and I miserably failed, so instead of a few minutes of downtime, I sent my service off for a few hours -- I am sorry.
I'm sure we've all done something similar at some point. I know I have ;)
 

ronaldlees

Aspiring Daemon

Thanks: 263
Messages: 679

#9
With respect to the installation of net-mgmt/nagios, the way to go is to edit /etc/make.conf as MarcoB suggested and then issue # cd net-mgmt/nagios; make install clean.

Your other questions about dual mode maintenance (binary packages and building from source) bubble up quite frequently in this forum, and just yesterday, I wrote up my take on this in a BLog post: FreeBSD Dual Mode updating of the installed ports collection.
Nice blog. Great IPDB tools article, BTW.
 

MarcoB

Well-Known Member

Thanks: 90
Messages: 333

#11
Please try again, yesterday I tried to switch the WordPress system from MySQL to MariaDB, and I miserably failed, so instead of a few minutes of downtime, I sent my service off for a few hours -- I am sorry.
No problem it's working now, thanks.
 
Top