From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 12:20:24 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 47AE316A41F for ; Wed, 28 Dec 2005 12:20:24 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7344E43D68 for ; Wed, 28 Dec 2005 12:20:23 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1531395nzo for ; Wed, 28 Dec 2005 04:20:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=jaB6B/ge007h2mW0DdBr2T12MEdUb3cEZdzgoMuVmvsO7bhmemW0MgK0ORRMbK2AK3bDCV05PhL/gi6bV4hLis45OQtwUnsGqaOsA0z/az3WO2jpeVupHJl2daGWony2eUBPLDy91EMWoTtCrl1wNutM0AEme692aiuEd1GEdlA= Received: by 10.64.209.19 with SMTP id h19mr2232395qbg; Wed, 28 Dec 2005 04:20:22 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.22.155]) by mx.gmail.com with ESMTP id q14sm625615qbq.2005.12.28.04.20.21; Wed, 28 Dec 2005 04:20:22 -0800 (PST) From: "Michael C. Shultz" To: Yuan Jue Date: Wed, 28 Dec 2005 04:20:18 -0800 User-Agent: KMail/1.8.3 References: <200512281355.31738.yuanjue02@gmail.com> <200512272221.11054.ringworm01@gmail.com> <200512281550.11717.yuanjue02@gmail.com> In-Reply-To: <200512281550.11717.yuanjue02@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512280420.19564.ringworm01@gmail.com> Cc: dsidorov@swsoft.com, freebsd-questions@freebsd.org 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 12:20:24 -0000 On Tuesday 27 December 2005 23:50, Yuan Jue wrote: > On Wednesday 28 December 2005 14:21, Michael C. Shultz wrote: > > On Tuesday 27 December 2005 22:10, Yuan Jue wrote: > > > 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? > > > > To delete ports that none depend on try: > > > > sysutils/portmanager > > > > portmanager -slid > > thanks. it works very well :) Your welcome :) -Mike