From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 06:08:13 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 1F78D16A41F for ; Wed, 28 Dec 2005 06:08:13 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87F6E43D46 for ; Wed, 28 Dec 2005 06:08:12 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by zproxy.gmail.com with SMTP id q3so789069nzb for ; Tue, 27 Dec 2005 22:08:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=VS/HH4UU3dIy9HdGiLeXkEI1Hue9uK6JTDI0z8UUK6XT/aowirJ9ePuJocOd5tRUuswN6pk+ReGl40QMO3AnKQz4IZ+iuB18q7EAY++4cyI5ssvIxQAIrVbZQzYABiqvo3aLr849XAF1Ntx5JGxymxk0kLHOAVK0wYLGvelpAts= Received: by 10.36.194.20 with SMTP id r20mr4934450nzf; Tue, 27 Dec 2005 22:08:11 -0800 (PST) Received: from yuanjue.nc6000.org ( [59.66.138.109]) by mx.gmail.com with ESMTP id 19sm5111566nzp.2005.12.27.22.08.09; Tue, 27 Dec 2005 22:08:11 -0800 (PST) From: Yuan Jue Organization: Tsinghua UNIV. To: freebsd-questions@freebsd.org, dsidorov@swsoft.com Date: Wed, 28 Dec 2005 14:10:54 +0800 User-Agent: KMail/1.8.3 References: <200512281355.31738.yuanjue02@gmail.com> <1135749614.526.1.camel@sidorov.plesk.ru> In-Reply-To: <1135749614.526.1.camel@sidorov.plesk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512281410.55365.yuanjue02@gmail.com> Cc: Subject: Re: pkg_delete question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 06:08:13 -0000 On Wednesday 28 December 2005 14:00, Dmitry Sidorov wrote: > On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote: > > hello, all > > > > I wanna delete a package that I don't want now. I know that when I use > > portinstall -R xxx to install it, many dependencies have been installed > > too. Now I wanna delete them all if they are not used by any other > > packages. > > > > how can I do it? can I "pkg_delete -r xxx"? > > > > thanks. > > yes you can, > ls -al /var/db/pkg > find your package name, and execute: > pkg_delete -r package_name thanks for your reply. but doesn't "pkg_delete -r xxx" use to delete all packages that depend on the xxx? what I wanna delete are those packages that xxx depend on. any ideas? -- Best Regards. Yuan Jue