pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Aw: Checking whether a package is installed



Andreas Gustafsson <gson%gson.org@localhost> wrote:

> Suppose my current directory is the pkgsrc directory of some package
> (pkgsrc/category/package).  Is there a shell command I can run that
> will return an exit status indicating whether or not the package in
> case is already installed (regardless of version), without building 
> or reinstalling it?

I use

pkg_info -qE <package_name>

for that.

--Carsten


Home | Main Index | Thread Index | Old Index