From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 12:47:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5D7416A40F for ; Thu, 30 Nov 2006 12:47:34 +0000 (UTC) (envelope-from nagylzs@freemail.hu) Received: from smtp.enternet.hu (smtp.enternet.hu [62.112.192.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4327843D1F for ; Thu, 30 Nov 2006 12:47:08 +0000 (GMT) (envelope-from nagylzs@freemail.hu) Received: from [80.99.172.190] (helo=[172.16.0.43]) by smtp.enternet.hu with esmtpa (Exim 4) id 1GplJq-000AXl-UR; Thu, 30 Nov 2006 13:47:15 +0100 Message-ID: <456ED2D2.2090708@freemail.hu> Date: Thu, 30 Nov 2006 13:47:14 +0100 From: =?ISO-8859-1?Q?Nagy_L=E1szl=F3_Zsolt?= User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Graham Bentley , freebsd-questions@freebsd.org References: <009001c7147a$a1ded750$1c07a8c0@CPC> In-Reply-To: <009001c7147a$a1ded750$1c07a8c0@CPC> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: simple question...how to show packages which depend upon 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: Thu, 30 Nov 2006 12:47:34 -0000 Graham Bentley írta: > And ... how to remove a package and all the packages > it sucked in ? > > All I get from pkg_delete that it isnt even installed when > I know it is because that was the previous command I > just ran !!! > Can you please send us the commands that you have executed? If you used "pkg_add -r " then the name of the package can be a general package name, without version number. This is useful since usually you are not sure what is the latest version, you just want to install it. Here is an example: messias# pkg_add -r mc Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/mc.tbz... Done. pkg_add: package 'mc-4.6.1_3' or its older version already installed However, if you add a package that is saved locally, you need to type in its full name (or path): pkg_add mc-4.6.1_3.tbz or something similar. Once you have the package/port installed, you can lookup its full name with pkg_which: messias# pkg_which mc mc-4.6.1_4 When you need to delete a package, you need to specify the full name (including the version number). The reason for this is easy: it is possible to have different versions of the same package installed at the same time. (Well, this is not true for some packages, but it is true for others...) So instead of doing: pkg_delete mc you should use: pkg_delete mc-4.6.1_4 I hope this answers your question. If it does, then probably reading these man pages will help you a LOT: portupgrade(1) pkg_add(1) pkg_deinstall(1) pkg_delete(1) pkg_glob(1) pkg_info(1) pkg_sort(1) pkg_update(1) pkgdb(1) ports_glob(1) portsclean(1) portsdb(1) portversion(1) pkgtools.conf(5) ports(7) Best, Laszlo