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 7th September 2009
mikaelj mikaelj is offline
New User
 
Join Date: Sep 2009
Location: Sweden
Posts: 3
Thanked 0 Times in 0 Posts
Default Cant use add_pkg

I did an install of this weekend and followed the guide at netbsd.org/docs/guide/en/chap-boot.html so i could get started after install.

In that guide it says that i have to activate a package source with following commands:

# export PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<PORT>/<RELEASE-NUMBER>/All"
# export PKG_PATH

When its done one should be able to install software with:

# pkg_add -v softwarename

I cant find a source for 5.0.1 and the 5.0 source wont work. If i use a 5.0 source pkg_add tells me i am using the wrong platform.

I have been googling for a solution most of sunday without finding anything that helps. And those guides i find are obsolete.

Any suggestions?
Reply With Quote
  #2   (View Single Post)  
Old 7th September 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Thanked 0 Times in 0 Posts
Default

Hi,

Did you paste exactly the same PKG_PATH?

You should change <PORT> for example to i386, depends which port do you use. <RELEASE-NUMBER> change to 5.0.

Best Regards
Tom
Reply With Quote
  #3   (View Single Post)  
Old 7th September 2009
mikaelj mikaelj is offline
New User
 
Join Date: Sep 2009
Location: Sweden
Posts: 3
Thanked 0 Times in 0 Posts
Default

No.. thats just a paste from the guide. I changed to i386 and 5.0 when writing the line on my netbsd install. My NetBSD 5.0.1 wont accept a i386 5.0 repo
Reply With Quote
  #4   (View Single Post)  
Old 8th September 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 563
Thanked 14 Times in 13 Posts
Default

As far as I know, the 5.0 packages should still work with 5.0.1, they do for me. The pkg_add problem you're having also seems strange; when I do it I get a warning about the different versions, but it still proceeds with the addition. For example:

Code:
# echo $PKG_PATH
.;/mnt/samsung/usr/local/src/NetBSD/5.0/packages;ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All

# pkg_add -v abcde-2.3.3nb2    
pkg_add: Warning: package `abcde-2.3.3nb2' was built for a platform:
pkg_add: NetBSD/i386 5.0 (pkg) vs. NetBSD/i386 5.0.1 (this host)
pkg_add: Warning: package `cd-discid-0.9' was built for a platform:
pkg_add: NetBSD/i386 5.0 (pkg) vs. NetBSD/i386 5.0.1 (this host)
bin/cd-discid
man/man1/cd-discid.1
Package cd-discid-0.9 registered in /var/db/pkg/cd-discid-0.9
pkg_add: Warning: package `id3-0.15' was built for a platform:
pkg_add: NetBSD/i386 5.0 (pkg) vs. NetBSD/i386 5.0.1 (this host)
bin/id3
man/man1/id3.1
Package id3-0.15 registered in /var/db/pkg/id3-0.15
pkg_add: Warning: package `id3v2-0.1.11nb2' was built for a platform:
pkg_add: NetBSD/i386 5.0 (pkg) vs. NetBSD/i386 5.0.1 (this host)
pkg_add: Warning: package `id3lib-3.8.3nb4' was built for a platform:
pkg_add: NetBSD/i386 5.0 (pkg) vs. NetBSD/i386 5.0.1 (this host)
bin/id3convert
bin/id3

...
Not sure what to suggest at the moment.
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


All times are GMT. The time now is 05:23 AM.


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