purely package-based/oriented solution
andy.kosela at gmail.com
Thu Apr 24 09:40:51 UTC 2008
On Thu, Apr 24, 2008 at 9:11 AM, Andriy Gapon <avg at icyb.net.ua> wrote:
> on 22/04/2008 22:41 Andriy Gapon said the following:
> > Sorry if this is something obvious or a FAQ.
> > Is there a tool for purely package-based management of third-party software?
> > That is, something that meets the following criteria:
> > 1. doesn't require ports tree
> > 2. works similarly to package installation in FreeBSD installer
> > 3. can properly handle upgrading packages (including dependencies)
> > 4. can check remote package repositories and, based on timestamp or
> > INDEX, can find new versions for installed packages
> > 5. can verify that all dependencies would be met before downloading all
> > packages in full (e.g. based on INDEX data or can download initial
> > blocks of packages, so that package metadata could be extracted and
> > examined).
> Results so far:
> 1. One tool that I found in ports was bpkg, its description and manual
> page sounded promising.
> But after I saw the following line in its code I decided to not even try it:
> pkg_delete -fa && pkg_add -r $all
>From my own experience the most stable and reliable as well as the
most simple method
for upgrading all packages is still the old "wipe them all first and
install from scratch", especially when
using binary only packages and recently you just upgraded to the new
FreeBSD RELEASE version.
I used nearly all package managers in the past: 'portupgrade',
'portmaster' etc. and all of them had
some peculiarities which I did not like, and especially portupgrade
gave me some headaches in the past, so I
decided to write a simple wrapper shell script around the base, rock
solid package tools pkg_add, pkg_delete etc.
On the other note on production systems I usually do not upgrade ALL
packages using any "automated" scripts
as usually all of them fail sooner or later :)
Cleanly upgrading third party packages is still not one of the
FreeBSD's strong points. On the positive note though, because
someone mentioned 'yum' you still can't cleanly upgrade RedHat/CentOS
between major version upgrades.. like RHEL 4 to RHEL 5.
The only recommended method is still to install from scratch.
Master Accredited Systems Engineer - HP SAN Architect
Lublin City Office, Department of Information Technology (IT)
email: akosela at lublin.eu
More information about the freebsd-ports