From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 06:49:41 2003 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 7EB7D37B404 for ; Mon, 7 Apr 2003 06:49:41 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 32AC443F75 for ; Mon, 7 Apr 2003 06:49:40 -0700 (PDT) (envelope-from mwm-dated-1050155379.518e3a@mired.org) Received: (qmail 449 invoked from network); 7 Apr 2003 13:49:39 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 7 Apr 2003 13:49:39 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Mon, 07 Apr 2003 08:49:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16017.33266.547939.388423@guru.mired.org> Date: Mon, 7 Apr 2003 08:49:38 -0500 To: Konrad Scorciapino In-Reply-To: <200304062034.14606.fallenbr@uol.com.br> References: <200304051954.06478.fallenbr@uol.com.br> <200304060902.42188.fallenbr@uol.com.br> <16016.23136.120779.936916@guru.mired.org> <200304062034.14606.fallenbr@uol.com.br> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: freebsd-questions@freebsd.org Subject: Re: Uninstalling dependencies 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: Mon, 07 Apr 2003 13:49:41 -0000 In <200304062034.14606.fallenbr@uol.com.br>, Konrad Scorciapino typed: > > Assuming you want to delete and any unused dependencies on > > it: > > pkg_info -R | sed 1,/Required/d > /tmp/deps > > pkg_delete > > pkg_delete $(cat /tmp/deps) > Hmm.. I got no relevant output from pkg_info, look: > konrad@localhost ~ > pkg_info -R gnome-1.4.1b2_2 > Information for gnome-1.4.1b2_2: > konrad@localhost ~ > > > What could be possibly wrong? I think it's a communications error. I've got the dependencies/dependents backwards from what you want. You don't want to delete the packages that require gnome, you want to delete the packages that it requires - but only if they aren't in use by something else. That's a noticably harder proposition. Try # cd /var/db/pkg # find . -name +REQUIRED_BY | xars grep -l gnome-1.4.1b2_2 > /tmp/pkgs # pkg_delete gnome-1.4.1b2_2 # pkg_delete $(cat /tmp/pkgs) You have to delete gnome first, otherwise it requiring the other packages will cause them to not be deleted. This should delete all the packages required by gnome that aren't required by other packages. Of course, pkg_deinstall in the portupgrade port will do this as with one command. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.