From owner-freebsd-questions@FreeBSD.ORG Mon Jul 25 00:13:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 159F7106564A for ; Mon, 25 Jul 2011 00:13:42 +0000 (UTC) (envelope-from toanhuyle.vn@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id D30CF8FC17 for ; Mon, 25 Jul 2011 00:13:41 +0000 (UTC) Received: by iyb11 with SMTP id 11so5537513iyb.13 for ; Sun, 24 Jul 2011 17:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4HB/EdzihShhO0JKV7tf4uVM8L5tw31268s9AsDzH3Q=; b=IQ6Z3gApEyz3ZuBijQJgUM2hPHoJzP6/sTV6EqNbKaftMNuca2I5YXyvYR90aR9iN1 myveV0Zcl95RS7vS4b96jtsA8it/HCuLt3Z/Gt+O1fx3LA3bMRzl3Scr2Pi8qE+J5XI4 0toGpYyTAzHaQ6r6VkQxpVzu8xdjhIKv06sgE= Received: by 10.142.249.27 with SMTP id w27mr2454023wfh.78.1311552820932; Sun, 24 Jul 2011 17:13:40 -0700 (PDT) Received: from [192.168.1.2] ([115.74.55.136]) by mx.google.com with ESMTPS id l19sm2856831wfk.23.2011.07.24.17.13.38 (version=SSLv3 cipher=OTHER); Sun, 24 Jul 2011 17:13:40 -0700 (PDT) Message-ID: <4E2CB52B.2010802@gmail.com> Date: Mon, 25 Jul 2011 07:13:31 +0700 From: Toan Le User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: bf1783@gmail.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "b. f." , freebsd-questions@freebsd.org Subject: Re: pkg_delete yields 'no such package' 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: Mon, 25 Jul 2011 00:13:42 -0000 It's great by correcting package name. Thanks for your tips of '-x' option !!! Regards, Toan Le On 7/25/2011 6:28 AM, b. f. wrote: >> Matthew Seaman wrote: >> On 24/07/2011 08:48, Toan H. Le wrote: >>> Either I use 'pkg_delete xorg-docs' or 'pkg_delete xorg-docs-1.4.1', >>> pkg_delete yields the error of 'no such package'. Checking via 'pkg_info' >>> and 'pkg_version' confirms the packages xorg-docs-1.4.1 installed. I think I >>> did not use the wrong command. >> Hmmm... That's a typo. The package name is: >> >> lucid-nonsense:...ports/x11/xorg-docs:% make -V PKGNAME >> xorg-docs-1.4,1 >> >> Note the comma -- that's part of the version number, and needs to be >> copied down verbatim for pkg_delete(1) > It is often convenient to use the -x or -X switches with these > utilities, or to use a glob, so that you only have to type part of the > full PKGNAME, e.g.: > > pkg_delete xorg-docs\* > pkg_delete -x xorg-docs > > Just make sure that the glob or regex that you use only applies to the > packages that you want the utilities to act upon, e.g.: > > pkg_info -I xorg-docs\* > pkg_info -Ix xorg-docs > > See the manpages of the utilities for details. > > b.