Topic: How to upgrade packages/ports on FreeBSD 12.0-RELEASE
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.0-RELEASE (iocage jail)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi ZhangHuangbin,
This is more or less a best practice question on how to upgrade packages/ports on FreeBSD.
During the years a sort of mixed information appeared on the forums. For example in May 2015 you confirmed that:
(pkg) Should be fine. But if you want to upgrade packages, why not use tools like 'portmaster'?
Then later in July 2017 you on this question:
So 'pkg upgrade' is the recommended way to update?
maybe a bit reluctantly confirmed that
It's ok.
I'm not going to accept something that is just ok, I'm looking for the best way how to go about performing the upgrade.
From my experience, a
pkg upgrade
leads to broken iRedMail and running
portmaster -a
requires pressing enter about 400 times on course of many hours.
I understand that noting works smoothly all the time and that there is a need to troubleshoot the problems, but I would really like to know what is the best practice to perform a package/port upgrade before I start solving incompatibilities with every individual one.
Thank you so much for your advice.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.