From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 06:01:03 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 F09F516A41F for ; Wed, 28 Dec 2005 06:01:03 +0000 (GMT) (envelope-from dsidorov@swsoft.com) Received: from master.plesk.ru (plesk-gw.Nsk.gldn.net [194.67.59.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14BFF43D49 for ; Wed, 28 Dec 2005 06:01:02 +0000 (GMT) (envelope-from dsidorov@swsoft.com) Received: from sidorov.plesk.ru (sidorov.plesk.ru [192.168.43.59]) by master.plesk.ru (8.13.5/8.13.5) with ESMTP id jBS60xNA008455; Wed, 28 Dec 2005 12:01:00 +0600 (NOVT) (envelope-from dsidorov@swsoft.com) From: Dmitry Sidorov To: Yuan Jue In-Reply-To: <200512281355.31738.yuanjue02@gmail.com> References: <200512281355.31738.yuanjue02@gmail.com> Content-Type: text/plain Organization: SWsoft Date: Wed, 28 Dec 2005 12:00:14 +0600 Message-Id: <1135749614.526.1.camel@sidorov.plesk.ru> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Antivirus: Dr.Web (R) for Mail Servers on master.plesk.ru host X-Antivirus-Code: 100000 Cc: freebsd-questions@freebsd.org Subject: Re: pkg_delete question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dsidorov@swsoft.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 06:01:04 -0000 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 -- Dmitry Sidorov PEM QA Engineer SWsoft, Inc. E-mail: dsidorov@swsoft.com ICQ UIN: 864582