From owner-freebsd-ports@FreeBSD.ORG Thu Apr 24 07:11:47 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 C28911065676 for ; Thu, 24 Apr 2008 07:11:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7978FC12 for ; Thu, 24 Apr 2008 07:11:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost ([127.0.0.1] helo=edge.pp.kiev.ua) by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1JovcP-000KDY-Me; Thu, 24 Apr 2008 10:11:45 +0300 Message-ID: <481032B1.2040907@icyb.net.ua> Date: Thu, 24 Apr 2008 10:11:45 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <480E3F5E.3060501@icyb.net.ua> In-Reply-To: <480E3F5E.3060501@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Andy Kosela , Michel Talon 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 07:11:47 -0000 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 2. Michel Talon has kindly let me know about his tool name pkgupgrade (in python). I must say that this is a tool that satisfied all my technical requirements, it worked very well, quite fast and very safely. It generates a script to perform an actual update and creates necessary backups and records. Then you can review the logs and the script and proceed. I think this tool should be added to ports. I will definitely keep using it. But on some levels I am still not completely satisfied. This is mostly about UI. I have to do some development on RedHat's OSes and there I came to be familiar with yum: http://en.wikipedia.org/wiki/Yellow_dog_Updater,_Modified It is really no brainer to use for everyday tasks: yum install xxx yum update xxx yum update <--- for all But underneath it has smarts and safety nets. -- Andriy Gapon