Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 22:41:18 -0800
From:      Timus <timus@floatingsheep.com>
To:        Mike Harding <mvh@ix.netcom.com>
Cc:        kaltorak@quake.com.au, freebsd-stable@FreeBSD.ORG
Subject:   Re: Ports updating... Good ways?
Message-ID:  <20010207224118.B40286@bushong.net>
In-Reply-To: <20010208061814.5E6C5E6A17@netcom1.netcom.com>; from mvh@ix.netcom.com on Wed, Feb 07, 2001 at 10:18:14PM -0800
References:  <3A8208E7.C6EE4C24@quake.com.au> <20010208061814.5E6C5E6A17@netcom1.netcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
pkg_version -c, while better than nothing, has quite a few problems, most
significant of which is dependency ordering (making sure that a library that,
say, "xv" depends on gets upgraded before "xv" itself.

I've been working on a decent upgrade script for the past few months, and now
seems as good a time as any to have people try it out.  

It's called "pkg_upgrade", and you can get it off of:
http://bushong.net/dave/sw/

Requirements:

* At minimum, the INDEX file from the ports tree; better yet is an actual
  ports tree (/usr/ports)
* The perl LWP modules (install /usr/ports/www/p5-libwww if you don't have it)

Features:

* will usage existing packages if they exist, and optionally build them if
  they don't; great for an NFS mounted ports/packages directory
* will try to fetch packages before building
* handles dependencies correctly
* handles the "disappearing library file" problem (new version of lib package
  doesn't provide lib that another installed package needs)
* other stuff i can't remember

Usage is "pkg_upgrade -h"

For a summary of what it _would_ do, were you to let it, try:

pkg_upgrade -al

Comments/feedback/code/replacement better package system for FreeBSD ;)
welcome.

--David Bushong

On Wed, Feb 07, 2001 at 10:18:14PM -0800, Mike Harding wrote:
> 
> pkg_version -c | sh
> 
> often works but you will probably want to spool it to a file.
> 
> - Mike H.
> 
>    Date: Thu, 08 Feb 2001 13:48:07 +1100
>    From: Kal Torak <kaltorak@quake.com.au>
>    X-Accept-Language: en
>    Content-Type: text/plain; charset=us-ascii
>    Sender: owner-freebsd-stable@FreeBSD.ORG
>    X-Loop: FreeBSD.ORG
>    Precedence: bulk
> 
>    Hiyas,
> 
>    Just wanted to see if anyone has some good ways of updating installed
>    ports...
> 
>    It would be good if you could update your installed ports as easily
>    as the base system, like some sort of script that worked out all the
>    dependencies and updated everything :)
> 
>    So anyone have a better way than slowly doing it by hand?
> 
>    Cheers!
>    Kal.
> 
> 
>    To Unsubscribe: send mail to majordomo@FreeBSD.org
>    with "unsubscribe freebsd-stable" in the body of the message
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010207224118.B40286>