Date: Sat, 7 Apr 2001 05:17:55 -0500 From: Mike Meyer <mwm@mired.org> To: "Munish Chopra" <messiah_man@hotmail.com> Cc: questions@freebsd.org Subject: Re: updating of ports, pkg_version -c script Message-ID: <15054.59731.103971.21910@guru.mired.org> In-Reply-To: <19740998@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Munish Chopra <messiah_man@hotmail.com> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15054.59731.103971.21910>
