From owner-freebsd-questions@FreeBSD.ORG Sun Sep 12 12:50:13 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25C79106564A for ; Sun, 12 Sep 2010 12:50:13 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA0388FC12 for ; Sun, 12 Sep 2010 12:50:12 +0000 (UTC) Received: by gyg4 with SMTP id 4so2068861gyg.13 for ; Sun, 12 Sep 2010 05:50:12 -0700 (PDT) Received: by 10.150.157.16 with SMTP id f16mr1459474ybe.126.1284295811899; Sun, 12 Sep 2010 05:50:11 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-071-070-147-230.nc.res.rr.com [71.70.147.230]) by mx.google.com with ESMTPS id w3sm1076248ybi.7.2010.09.12.05.50.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Sep 2010 05:50:11 -0700 (PDT) Received: from scorpio (zeus [192.168.1.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: FreeBSD.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 89563E54862 for ; Sun, 12 Sep 2010 08:50:09 -0400 (EDT) Date: Sun, 12 Sep 2010 08:50:08 -0400 From: Jerry To: FreeBSD Message-ID: <20100912085008.558d3d84@scorpio> In-Reply-To: <4C8CBADC.3070904@gmail.com> References: <4C8C0110.20801@gmail.com> <4C8CBADC.3070904@gmail.com> Organization: seibercom.net X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEX3/uPVnZf2/v9ejGkqHB74++H///+cHCT3m6cgqYvfAAACbElEQVQ4jWXTQW/bIBQAYJLJuRMn8TVCss9zTdrrXJ6bHe1Ej/bossF9EpJ3nbapf3sP8JxOQ4qV8OU9HvjBROWcYNlKHtxlQ1/huBaOBiMwQtgHhbokMLIT76Acps5hvy61+6WsjkCZzNEW0+fcQ7Nl5uoPCegjjjhN5/MEABd89k9hXkQoX6cwPIDKCt8tYG5wpmdrxAyuolTPqpiVoEpVCWvl6e00RAD4JBJQnO4lvv0O4Cnd3WUGevYNFohxFYAy7jCCtW39LaQK8BgDAgiHVinVJlCiFKlcqgEHfwb1EuG+DwFGMO3oCIuJIEYoa8KJECBB+UBldgm0MQmEGz7GQr8XYRPKzYNO1zZ8mgdAu4BG5Ke/4KFboM8458UScViAAvYD93OAsu+Bc3zxCU7ZAjT74+dQv9K7oO0d1wuscop48Pc50O5bcVwgGzh/mXzaizJuAWERh8k3eaxKmxu4kV1p2XOEg3i3c8M+EKR93P0D1KATpC55vMHaGqFf5f/AwhlrhHgg8DTezopt6I3o3Qx4q4q6YaPxK8RxcClXeFGhTTS++QR6TS/oBs7l4WhzuNMubZG6hIBkF4qqZVdWczIqSrjKVF/i4o26IP2oElBGFy5CXKSnf6UWDTC6zKSqoAvzsakjjBvdzLKnmxdhY8eRsX7VSCUBdgD1hVJpx6y2OOS1DNDILYmqdWUJ+oHvd0rRvAqX5kpxQMR6yxHzPV6VlPFyWE7LKc36keNQI64gLP8Ybgtmg+zYuBl4fuI8VqW2RqDGE8Uzu7GxGa803whDdxx3bSZbRhfQUSxvmnpLZWpRFqHz7v8AvsBe0S1zv9UAAAAASUVORK5CYII= Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: Upgrading packages - portupgrade confusion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 12:50:13 -0000 On Sun, 12 Sep 2010 14:34:52 +0300 Kaya Saman articulated: > [...] > > Have you refreshed the ports tree(s) with csup using the same > > supfile to ensure the ports trees are up to date ( and therefore > > identical)? Since you are using portugrade, as I do, this is what I > > do to see what needs to be done: > > > > I cd to /usr/sup which is where I keep my supfiles and the > > housekeeping. Then using this command sequence will refresh the > > ports tree, the ports index database, and ensure the package > > database is clean and synced. Portversion then just tells you with > > a "<" symbol any that are old and in need of an update. > > > > csup -L 2 ports&& portsdb -uF&& pkgdb -u&& portversion > > > > where "ports" above is my supfile for ports refresh and looks like > > this: > > > > *default host=cvsup.nl.freebsd.org > > *default base=/usr > > *default prefix=/usr > > *default release=cvs tag=. > > *default delete use-rel-suffix compress > > ports-all > > > > Then a portupgrade -a as required. If all symbols in the right > > column are "=" everything is up to date and nothing is required. > > Adjust server location for mirror near you (or one that works best). > > > > -Mike > > Thanks alot Mike for the response!! > > I didn't actually refresh the ports tree so I'm gona have to do that. > > The thing I don't quite understand though is that if the ports tree > gets refreshed, do the packages get upgraded or will I need to > rebuild them?? You have to rebuild them. > I slightly recall the csup commnad, however I've never actually > performed an inplace upgrade of a package in BSD. Only done this kind > of thing in Linux - Debian/Ubuntu, CentOS and Solaris - OpenSolaris, > Belenix where they have package managers. > > What's the process for upgrading a package? make reinstall clean?? If using a port maintenance application such as portupgrade or portmanager, you could simply do the following: "portupgrade -a" or "portmanager -u" depending on what application you are using. Switching between multiple port maintenance applications is not the worse thing you could do; however, I would not recommend it as an everyday occurrence. If doing it manually, you could just do: make && make deinstall && make reinstall && make distclean There are other variations of course. I would recommend that you run: "make config" in the port's home directory prior to building it for the first time. there might be some useful features that you want to turn on or off. -- Jerry ✌ FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Minicomputer: A computer that can be afforded on the budget of a middle-level manager.