Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2011 23:28:02 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        freebsd-questions@freebsd.org, "Toan H. Le" <toanhuyle.vn@gmail.com>
Subject:   Re: pkg_delete yields 'no such package'
Message-ID:  <CAGFTUwPoSuhZcXU%2BeGEANXrqhaPy5Q4Skz5mP4y6j4qcyd3gCw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGFTUwPoSuhZcXU%2BeGEANXrqhaPy5Q4Skz5mP4y6j4qcyd3gCw>