Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jul 2005 11:15:53 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        FreeBSD-Questions@FreeBSD.ORG
Cc:        slas7713@yahoo.com
Subject:   Re: accidental overwrite
Message-ID:  <42C9DF49.3010904@meijome.net>
In-Reply-To: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com>
References:  <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
steve lasiter wrote:
> My question(s) are: Is there any way to revert back to
> the original file if this type of mistake is made? If
> not is there anyway to get just that one file without
> having to do a complete removal and installation? And
> finally, is the only way to NOT do this again is to
> use the appropriate flags with cp?

Hi Steve,
first of all, as a rule of thumb, u wouldn't want to write your own 
files into /usr/local/bin/ unless they are your own scripts. data (other 
from executables) from ports / base system are hardly ever (never?) 
found in a 'bin' directory (/usr/local/bin/ , /usr/bin/, /sbin/, etc)

If I were in this pickle, i'd just do reinstall the port and move on :)

If for whatever reason ur current mysql-client port folder is a version 
you dont' want to upgrade to,you can cvsup the port to the version you 
are after (not sure about the details of this...). Once you have 
cvsuped to that version, do a make ; make deinstall; make reinstall and 
u should be fine.

You could also just do a make on the ports and copy the file by hand (to 
  be absolutely certain only /usr/local/bin/mysql is updated).


Beto



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C9DF49.3010904>