From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 09:03:02 2004 Return-Path: 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 C168516A4CE for ; Wed, 23 Jun 2004 09:03:02 +0000 (GMT) Received: from av13-1-sn4.m-sp.skanova.net (av13-1-sn4.m-sp.skanova.net [81.228.10.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6DE243D49 for ; Wed, 23 Jun 2004 09:03:01 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av13-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id C2F9E37E4E; Wed, 23 Jun 2004 11:03:00 +0200 (CEST) Received: from smtp4-1-sn4.m-sp.skanova.net (smtp4-1-sn4.m-sp.skanova.net [81.228.10.181]) by av13-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id B4F9037E42 for ; Wed, 23 Jun 2004 11:03:00 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-1-sn4.m-sp.skanova.net (Postfix) with SMTP id 1DE9137E42 for ; Wed, 23 Jun 2004 11:03:00 +0200 (CEST) Received: (qmail 60554 invoked by uid 1001); 23 Jun 2004 09:02:59 -0000 Date: Wed, 23 Jun 2004 11:02:59 +0200 From: Erik Trulsson To: Andreas Davour Message-ID: <20040623090259.GA60494@falcon.midgard.homeip.net> Mail-Followup-To: Andreas Davour , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: I messed up, removed /usr/X11R6/lib X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 09:03:02 -0000 On Wed, Jun 23, 2004 at 10:34:02AM +0200, Andreas Davour wrote: > > Hi. > > Apart from the obvious answer to use the backup, is there any way to get > it all back in /usr/X11R6/lib after you did a 'rm -fr' to many? > > I have reinstalled the /usr/ports/x11/XFree86-4 port which I had hoped > would pull back in all needed stuff. But, now X complains about some > missing parts which I don't know where they come from. Anyone know how I > can get it all back? > > The Errors: > (EE) Failed to load module "bitmap" (module does not exist, 0) > (EE) Failed to load module "pcidata" (module does not exist, 0) > > Where do I find them? Those two come from the x11-server/XFree86-4-Server port, but there are *lots* of programs that install files under /usr/X11R6/lib - most programs that use X and install shared libraries put the libraries there, for example, so be prepared for more problems appearing. Restoring from backups sounds like a good idea. The other possibility is to reinstall all programs you have. Personally I would first get a list of all ports installed (using pkg_info(1), then delete all ports (using "pkg_delete '*'" and then install all wanted ports from scratch (after doing a "rm -fr /usr&X11R& /usr/local" to make sure no files were left.) This will take some time, so if you have good backups you should probably use them. It is of course not strictly necessary to reinstall all ports, just those who had files installed unser /usr/X11R6/lib, and you could probably get away by just doing a 'make reinstall' for each of them rather than deleting them first, but by deleting and installing all ports you minimize the risk for having problems with ports only having half of their files installed, or missing some port. -- Erik Trulsson ertr1013@student.uu.se