tech-pkg archive

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

Re: Asterisk package naming




D'Arcy Cain <darcy%NetBSD.org@localhost> writes:

> On 2018-08-02 07:29 AM, Jonathan Perkin wrote:
>>> Because pkg_info gives me the names, not the paths.  Is there another
>>> tool that can return, for example, devel/gmake instead of gmake-4.1nb4?
>> 
>> As has been mentioned multiple times already in this thread:
>> 
>>   $ pkg_info -Q PKGPATH
>
> It's probably my fault for not being clear enough.  I have a list of
> packages that includes asterisk.  I could change that to comms/asterisk
> but how do I know if it has been installed?

pkg_info -Q PKGPATH -a

will give you the PKGPATH of every installed package.

> $ pkg_info -Q PKGPATH asterisk
> pkg_info: can't find package `asterisk'
>
> So not installed yet but then how do I know which directory to build it
> from?  My script guesses "/usr/pkgsrc/*/asterisk" which succeeds but
> installs the wrong version.  I can't use pkg_info to get the directory
> until AFTER it is installed.  Catch 22.

If you are generatign a list from what's installed, you can use the
command I gave above.  If you are doing it by hand, then you can just do
it by hand :-)

> Yes, sometimes the guess will fail but except for asterisk it always
> fails by installing nothing and I can handle it manually.  Except for
> asterisk once everything is installed my script does not complain about
> anything.

Once you move to PKGPATH, I think you'll be ok.


Home | Main Index | Thread Index | Old Index