From owner-freebsd-questions Sat Apr 7 3:17:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 1C66237B43C for ; Sat, 7 Apr 2001 03:17:56 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 48493 invoked by uid 100); 7 Apr 2001 10:17:55 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15054.59731.103971.21910@guru.mired.org> Date: Sat, 7 Apr 2001 05:17:55 -0500 To: "Munish Chopra" Cc: questions@freebsd.org Subject: Re: updating of ports, pkg_version -c script In-Reply-To: <19740998@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Munish Chopra types: > The script generated by 'pkg_version -c' includes a command to delete the > old port 'pkg_delete -f portname'. Before I hose up my system doing dumb > things, how would this work? Does this require that you build a port in it's > directory, do a pkg_create, and install it that way? Or can this pkg_delete > stuff work even if I just used 'make install'? Yes, pkg_delete works if you do "make install". Make install updates the package database used by pkg_delete. > And lets suppose I run one of these scripts, and I am running KDE or GNOME. > Would the session just die or what? Should I go into single-user mode before > running any of this stuff, in case things like that need upgrading? Running code keeps on working just fine. You can even update X this way while it's running - though starting a new xterm when there is no xterm installed is difficult. Some things that have data files on disk while they are running will get very upset if they dissapear while the code is running though. You have to check the script for those and deal with them by hand. As Kent mentioned, you should also make sure the dependency order is correct, though it doesn't always matter. Likewise, sometimes a port changes and breaks things that depend on it, and that won't be caught in the script. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message