From owner-freebsd-ports@FreeBSD.ORG Thu Apr 24 09:40:51 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7746E106566C for ; Thu, 24 Apr 2008 09:40:51 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4A58FC0A for ; Thu, 24 Apr 2008 09:40:51 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so4934327waf.3 for ; Thu, 24 Apr 2008 02:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=CZZprA1KvZVQOAjPcfwy5a5jZnibFoms6OJEjYbLKTo=; b=fybsPSS2NRPiLXXjKpz7E2LzJfWJ3PbLcCdUpvWl5frYNEDT7hf08BVe2mGlsdITzugDnQhQHTPZUhuZOGebSU1shsxZefeqQPsEDNor9zqroleFBG/YTfpS0ogjVKbOx4WQdUN4j6XT2nIEB4fgtY9Q9gD9qRB6UMlTu770tqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MOjmaIQzdhtqcQPQSEyjM11JnQdRR98DSc6T5ibFpX66hkwEHown0daACfFAJtlKCvgks7mpEnYIpY1fH+36YHfm9aR6n54QRaUJK1Wg5fPEYpFMEvPb9wWu1zxpgEyQMsxuZ0gctonsEMjOF7ZGSeUUf6uQ2oWpq/V95Lwb6WA= Received: by 10.114.190.6 with SMTP id n6mr1444877waf.131.1209028482742; Thu, 24 Apr 2008 02:14:42 -0700 (PDT) Received: by 10.114.12.1 with HTTP; Thu, 24 Apr 2008 02:14:42 -0700 (PDT) Message-ID: <3cc535c80804240214k2b3059f7xeee9eee22574ed24@mail.gmail.com> Date: Thu, 24 Apr 2008 11:14:42 +0200 From: "Andy Kosela" To: "Andriy Gapon" In-Reply-To: <481032B1.2040907@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <480E3F5E.3060501@icyb.net.ua> <481032B1.2040907@icyb.net.ua> Cc: Michel Talon , freebsd-ports@freebsd.org Subject: Re: purely package-based/oriented solution X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 09:40:51 -0000 On Thu, Apr 24, 2008 at 9:11 AM, Andriy Gapon 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. regards, -- Andy Kosela Master Accredited Systems Engineer - HP SAN Architect Storage Administrator Lublin City Office, Department of Information Technology (IT) email: akosela@lublin.eu