JF> It almost looks like the system was built up JF> without using *any* of the admin tools. This would not surprise me, knowing who built it. JF> Can I see outputs from the commands below: JF> pkg_info Here we go: # pkg_info pkg_info XFree86-libraries-4.2.0_1 XFree86-4 include/(shared) library kit Xaw3d-1.5 A 3-D Athena Widget set that looks like Motif autoconf213-2.13.000227_1 Automatically configure source code on many Un*x platforms bison-1.35_1 A parser generator from FSF, (mostly) compatible with Yacc cvsup-16.1f General network file distribution system optimized for CVS emacs-21.2_1 GNU editing macros expat-1.95.2 XML 1.0 parser written in C ezm3-1.0 Easier, more portable Modula-3 distribution for building CV freetype2-2.0.9 A free and portable TrueType font rendering engine gettext-0.11.1_3 GNU gettext package gmake-3.79.1_1 GNU version of 'make' utility imake-4.2.0_1 Imake and other utilities from XFree86 jpeg-6b_1 IJG's jpeg compression utilities libiconv-1.7_5 A character set conversion library libtool-1.3.4_3 Generic shared library support script libungif-4.1.0b1 Tools and library routines for working with GIF images m4-1.4_1 GNU's m4 pgp-2.6.3i PGP MIT or International version - Public-Key encryption fo pkg_tarup-1.2_3 Generates binary package from installed package png-1.2.2_4 Library for manipulating PNG images popt-1.5.1_1 A getopt(3) like library with a number of enhancements, fro portupgrade-20020429 Very powerful FreeBSD ports/packages upgrading tool and mor rsync-2.5.5_1 A network file distribution/synchronization utility ruby-1.6.7.2002.05.23 An object-oriented interpreted scripting language ruby-bdb1-0.1.7 Ruby interface to Berkeley DB revision 1.8x with full featu ruby-fnmatch-1.1b_1 A Ruby module which provides File::fnmatch and File::FNM_* ruby-optparse-0.8.6 Yet another command line option parser for Ruby sendmail-8.12.3_1 Reliable, highly configurable mail transfer agent with util tiff-3.5.7 Tools and library routines for working with TIFF images ksh-2.05a# JF> uname -a JF> SysAdmin Stuff: JF> /etc/defaults is where stuff is stored to be updated by mergemaster. JF> copying the /etc/defaults/make.conf to /etc/make.conf will let you JF> set overrides for building userland/kernelland/ports that will not JF> be deleted/modified when you do your next installworld. JF> For everything else I have to be a BOFH and have you look in the handbook JF> located in /usr/share/doc/handbook so you can understand how to use CVSUP JF> and how it all fits together with /etc/make.conf, among other things. JF> There is also a searchable handbook at: http://www.freebsd.org/ JF> Once you get thru the reading you will understand that a simple: JF> make update JF> can be used to update your src/ports/docs tree(s) unattended. JF> Just make sure to read /usr/src/UPDATING before buildworld. JF> On Mon, Jan 06, 2003 at 11:40:48AM -0700, Lynn David Newton wrote: >> >> Thanks for the fast turnaround on my FreeBSD questions. >> I've done much Unix sysadmin, but little with FreeBSD, >> so I have some questions before I do something that >> will meltdown the machine, which would not please my >> boss. >> JF> 1. You must pkg_delete the old version before "make install" >> >> I ran pkgdb -F and see that the string "mysql" is *NOT* >> in the output. >> >> This suggests to me that the existing version of mysql >> was not installed through /usr/ports, but probably by >> building from a source distribution. If so, this could >> mean all bets are off as far as paths and all that. I >> might be shooting at the wrong target. >> >> Agreed? >> JF> to make sure you aren't mixing and matching JF> files between version. >> JF> 2. Update your ports tree with CVSUP. JF> Edit /etc/make.conf to make this easily JF> scriptable. >> >> There is no existing /etc/make.conf on the system. >> There is an /etc/defaults/make.conf and also a >> /usr/share/examples/etc/defaults/make.conf, which I >> assume is irrelevant. >> >> /etc/make.conf is large, but everything in it is >> commented out except for a definition for BDECFLAGS. I >> wouldn't know what I could safely alter in this file >> without studying it for a while. I believe I'll just >> ignore it for now. My primary objective is simply to >> get mysql updated. >> >> cvsup itself did not exist on the system. Therefore, I >> had to build/install cvsup from /usr/ports/net/cvsup. >> >> It surprises me that cvsup is not installed on the >> system by default, given that it is so central to the >> process of installing/upgrading packages in FreeBSD. >> >> (This is a fairly new system that we are gradually >> building to be a special purpose server. The person who >> originally created it is no longer with us, and was a >> 19-year-old kid part-timer, not an experienced >> professional sysadmin. Now that some of this work has >> been offloaded to me I'm unsure what I'm dealing with.) >> >> I have not yet executed cvsup. Will a single command >> with no arguments do what I want it to do, or are there >> standard options and arguments? >> JF> 3. *Backup* your database(s)!!!! >> >> Yep, I'll certainly do that. Probably ought to stop the >> mysqld, too. >> JF> 4. do a "make" first and check for any needed arguments, switches, JF> or pkg messages with instructions for things JF> you may need to adjust/add/remove. >> JF> A safer way is to install portupgrade and manage JF> ports with it. >> >> Okay, I've done that, i.e., I also had to build >> portupgrade from /usr/ports/sysutils/portupgrade >> because it wasn't installed, but it seems to be raring >> to go. >> JF> To fix and check all ports do: JF> pkgdb -F >> >> See above. >> JF> portversion -vc > /tmp/PORTS.LIST >> JF> then take a look at the contents of PORTS.LIST for things JF> that need to be upgraded. >> >> All that's in it is a script: >> >> # cat /tmp/PORTS.LIST >> >> if [ X"$pkgs" != X"" ]; then >> portupgrade $pkgs >> fi >> >> I'm not sure where I'm at here. Can I just run >> portupgrade, or do I need to run cvsup and then >> portupgrade, or what? >> >> -- >> Lynn David Newton >> Phoenix, AZ JF> --------------------------------------------------- JF> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us JF> To subscribe, unsubscribe, or to change you mail settings: JF> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss