DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th April 2020
ctac ctac is offline
New User
 
Join Date: Feb 2020
Posts: 5
Default PKG_PATH and pkg_install.conf

Hi,

Code:
uname -a
NetBSD LeNetBSD1 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
If I use pkg_info with an installed package, I get the result.

If I try with an uninstalled package, I get :
Code:
pkg_info consolekit-1.2.1nb3.tgz
pkg_info: can't find package `consolekit-1.2.1nb3.tgz'
So I set /etc/pkg_install.conf.
Code:
cat /etc/pkg_install.conf                                           
PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.0_2019Q4/All/"
I get the same result

So I try with PKG_PATH :
Code:
export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.0_2019Q4/All/" ; pkg_info consolekit-1.2.1nb3.tgz
I get the same result.

The only way I can get something with PKG_PATH is :
Code:
export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.0_2019Q4/All/" ; pkg_info "${PKG_PATH}consolekit-1.2.1nb3.tgz"
But here PKG_PATH is not nedded.

I certainly miss something here but what ?
Reply With Quote
  #2   (View Single Post)  
Old 2nd May 2020
Sehnsucht94's Avatar
Sehnsucht94 Sehnsucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 169
Default

Quote:
The only way I can get something with PKG_PATH is :
Code:
export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.0_2019Q4/All/" ; pkg_info "${PKG_PATH}consolekit-1.2.1nb3.tgz"
But here PKG_PATH is not nedded.

I certainly miss something here but what ?
pkg_info is meant to be used with packages registered inside $PKG_DBDIR, not to query available ones in whatever repo is specified by $PKG_PATH. From pkg_info(1):
Quote:
Package info is either extracted from package files named on the command line, or from already installed package information in <PKG_DBDIR>/<pkg-name>.
You can use pkgin search <pattern> to perform a regular expression search for a pattern in the repository. pkgin avail may help too depending on your needs
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote
  #3   (View Single Post)  
Old 3rd May 2020
ctac ctac is offline
New User
 
Join Date: Feb 2020
Posts: 5
Default

pkg_info never read PKG_PATH.

pkg_info read PKG_DBDIR from
- the -K flag
- the command line with export
- /etc/pkg_install.conf.

I find that strange but that work this way.

Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is PKG_PATH stored scottro OpenBSD Packages and Ports 8 9th July 2016 06:44 AM
PKG_PATH not changing Roydd85 OpenBSD Packages and Ports 12 7th April 2016 01:30 AM
export PKG_PATH betweendayandnight OpenBSD General 4 9th August 2015 12:07 PM
can't setup PKG_PATH after install of 5.5 spermwhale_warrior OpenBSD Packages and Ports 10 26th August 2014 09:29 PM
Failed building pkg_install Graaf_van_Vlaanderen NetBSD Package System (pkgsrc) 2 18th April 2009 12:26 PM


All times are GMT. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick