From owner-freebsd-questions@FreeBSD.ORG Mon May 26 16:01:38 2008 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 7835A106566C for ; Mon, 26 May 2008 16:01:38 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 16B348FC20 for ; Mon, 26 May 2008 16:01:37 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yx-out-2324.google.com with SMTP id 31so37476yxl.13 for ; Mon, 26 May 2008 09:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=6yvBgmCc3T0LQXgWy0c/ihOPowpo8GiYk7HeGdMDIGw=; b=TeHsNMDlflfeECzeGvX1AFDAAnqiW+cFFhAUUIZTAamiIxsBFmaC8FWd1dVz48sQ/Q+Nk4FFTclSLtKq+auVIO8KKYvQLCgh+jx81G2d6PQpsFehPcKOfsUNmgTYCbOdxZfR47LEPHviGM8VvvbUl0fqPThGOjIetyRDbPHrJQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=tjIYSxCLGeAEHE2IIbfuY4a+9rlugcjym3ut6XOvk9h0GDLyivDkD6GH8tO4C4/au85UdaeJkDQugzTadK5rZ8bJ3ANaWP0AIDtR009HydOLgJWYbMs1DpL02j+h0fplvrkY/jXZYllnCShMIAqE7tyTr8FkaFRJmrO01EMgeBU= Received: by 10.150.73.41 with SMTP id v41mr1156125yba.187.1211817697349; Mon, 26 May 2008 09:01:37 -0700 (PDT) Received: from ?192.168.4.140? ( [76.113.34.1]) by mx.google.com with ESMTPS id 9sm53548yxs.5.2008.05.26.09.01.35 (version=SSLv3 cipher=RC4-MD5); Mon, 26 May 2008 09:01:36 -0700 (PDT) From: Tim Judd To: Gilles In-Reply-To: References: Content-Type: text/plain Date: Mon, 26 May 2008 10:01:36 -0600 Message-Id: <1211817696.1154.3.camel@t60.local.zz> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Is it safe to upgrade libraries? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 16:01:38 -0000 On Mon, 2008-05-26 at 14:47 +0200, Gilles wrote: > Hello > > When running "'pkg_version -v", I notice that some libraries are out > of date, such as the most important glib: > > glib-2.14.6 < needs updating (port has > 2.16.3) > > Before I go ahead and run "cd /usr/ports/devel/glib20 ; make ; make > install", I'd like to check what the recommended way is to upgrade > critical applications like this? > > As I connect remotely through SSH, I wouldn't want to break this box > and have to drive to the location because it won't run after the > upgrade. > > Thank you. > I think of it this way -- since ssh is part of base -- which doesn't need your glib to run -- connecting by ssh to upgrade that should be fine, since you're not changing something that's "in-use". Second of all, after you actually connect to a ssh session, the session you're using has the program and libraries in ram, and you can swap out anything you want while you stay connected. Programs that use the affected library should be restarted for changes to take effect. I have no hesitation that upgrading PORTS/PACKAGES over ssh will cause problems. You might need to restart some services (think of a nss or pam plugin that alows you to authenticate over say LDAP or samba or SQL). I have more hesitation when I do a system upgrade than when I upgrade ports/packages. Hope this helps. --Tim