From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 09:14:32 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A477516A420 for ; Thu, 21 Jul 2005 09:14:32 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECBF543D64 for ; Thu, 21 Jul 2005 09:14:27 +0000 (GMT) (envelope-from nlamprecht@gmail.com) Received: by zproxy.gmail.com with SMTP id r28so91245nza for ; Thu, 21 Jul 2005 02:14:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SBr4d24Y6x3wwEsKzHO94yjqgozA2ZGn1CKCXlSUoUVPpcg2I3OI2AmnV0fh8VramaOY6TggtkpeDyp6UqMN1C3+anhmIqJxr4Bp2mU3wHOu5oB15ICnjDDgbOsWceqPWcksFOsmu1dcjc0xvjn/QOZHareTDeJhEvl90VDNo4k= Received: by 10.36.33.3 with SMTP id g3mr761136nzg; Thu, 21 Jul 2005 02:13:53 -0700 (PDT) Received: by 10.36.108.6 with HTTP; Thu, 21 Jul 2005 02:13:53 -0700 (PDT) Message-ID: <7cbadc8705072102132d8fe2bd@mail.gmail.com> Date: Thu, 21 Jul 2005 11:13:53 +0200 From: Nelis Lamprecht To: Xu Qiang In-Reply-To: <20050721070434.254A11D930@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050721070434.254A11D930@imss.sgp.fujixerox.com> Cc: freebsd-questions@freebsd.org Subject: Re: undelete in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nelis Lamprecht List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 09:14:32 -0000 On 7/21/05, Xu Qiang wrote: > Hi, all: >=20 > I mis-deleted /usr/local/bin directory in my FreeBSD. How can I restore i= t? >=20 There isn't a way to restore unless you have a backup. However, most of the binary files in /usr/local/bin are from packages/ports you have installed on your system. So you may be able to get away with using portupgrade(/usr/ports/sysutils/portupgrade) to re-install those packages and therefore "restoring" some if not all of /usr/local/bin. Do a portupgrade -f -a which forces portupgrade to re-install all packages/ports you have currently installed. Good luck. Nelis