DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th February 2013
haziz haziz is offline
New User
 
Join Date: Jan 2013
Posts: 7
Default What is the PKG_PATH for NetBSD 6.0.1 Binary Installs?

What is the value or URL for `PKG_PATH` used to inform NetBSD 6.0.1 where to download binary packages from? There seems to be a change in both servers as well as the path or directory layout for the packages directory. I have tried and failed to figure it out. I am using NetBSD on an `i386` architecture.
Reply With Quote
  #2   (View Single Post)  
Old 10th February 2013
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: 1,027
Default

I've been using:

http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0/All

It still seems to be there. Were you using something different before? If there's a better location for 6.0.1 I'd like to know of it too.
Reply With Quote
  #3   (View Single Post)  
Old 10th February 2013
haziz haziz is offline
New User
 
Join Date: Jan 2013
Posts: 7
Default

Quote:
Originally Posted by IdOp View Post
I've been using:

http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0/All

It still seems to be there. Were you using something different before? If there's a better location for 6.0.1 I'd like to know of it too.
When I tried to use that and started installing Emacs it did find the binaries (it actually looked like it was downloading source code) but kept objecting and printing messages about the 6.0 and 6.0.1 discrepancy but it did proceed with the intstall (I killed it with CTRL-C since I was not sure what to do). It seems to be treating 6.0 and 6.0.1 as different.
Reply With Quote
  #4   (View Single Post)  
Old 10th February 2013
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: 1,027
Default

Quote:
Originally Posted by haziz View Post
When I tried to use that and started installing Emacs it did find the binaries (it actually looked like it was downloading source code) but kept objecting and printing messages about the 6.0 and 6.0.1 discrepancy but it did proceed with the intstall ...
I think it's just warning that the packages were compiled for 6.0, while the running system is 6.0.1. In principle/general that could be important, but it is also a typical message in these situations and things usually work fine. My assumption is that if there really were a problem due to the OS version mis-match that they would produce separate binaries for the newer version.

Quote:
.. (I killed it with CTRL-C since I was not sure what to do).
It might have been better, as a test, to install some small package with no dependencies, rather than emacs. You might want to look under /var/db/pkg/ and see if there is anything there that you don't want due to the emacs install attempt.
Reply With Quote
  #5   (View Single Post)  
Old 10th February 2013
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

Quote:
Originally Posted by haziz View Post
What is the value or URL for `PKG_PATH` used to inform NetBSD 6.0.1 where to download binary packages from?
Check your root's .shrc or .profile, it should contain PKG_PATH examples, with correct paths. It might be commented out though.

Concerning the error, it is usually harmless, it's just sayin' that the packages were built on a bit older system than the one you got.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #6   (View Single Post)  
Old 4th March 2013
motsteve motsteve is offline
Real Name: Steve Carlton
BSD Newbie
 
Join Date: Dec 2012
Location: Plantation, FL
Posts: 1
Default

This is what is in the guide:

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

export PKG_PATH

Here's what works:

export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/6.0_2012Q4/ALL

This is for NetBSD 6.0.1 64bit.

What got me on the right path was what was in the original .profile. I was believing it was wrong because of what was written in the guide. Silly me. That is what you get when you RTFM I wasted hours on this foolishness.
Reply With Quote
  #7   (View Single Post)  
Old 4th March 2013
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: 1,027
Default

Hi motsteve, welcome to daemonforums and thanks for posting!

It's interesting, I just went into the two pairs of directories with lynx.

For amd64, it seems the 6.0/All and 6.0_2012Q4/All directories are identical.

for i386 though, the two same-named directories are very different with 6.0_2012Q4/All having newer files. As I use i386 it seems I should switch over to 6.0_2012Q4.
Reply With Quote
  #8   (View Single Post)  
Old 14th March 2013
pawaan pawaan is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 82
Default

I upgraded NetBSD 6.0 to 6.0.1 , changed PKG_PATH to 6.0_2012Q4 but when I did pkg_add -uu the package upgrade didn't take place (missing package names)
What's the right way to upgrade all installed packages ?
Reply With Quote
  #9   (View Single Post)  
Old 15th March 2013
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: 1,027
Default

Quote:
Originally Posted by pawaan View Post
I upgraded NetBSD 6.0 to 6.0.1 , changed PKG_PATH to 6.0_2012Q4 but when I did pkg_add -uu the package upgrade didn't take place (missing package names)
What's the right way to upgrade all installed packages ?
You need to put the package names on the command line, to tell it which ones you want to install/upgrade. For example

# pkg_add -uv firefox lynx

Minor point: did you really mean to type -uu instead of -uv ? I don't see anything in the man page pkg_add(1) about doubling the -u (on a quick check).

If you want to upgrade all packages, you could list the ones you have installed on the command line, after removing the version number so it will look for the latest. For example

# pkg_add -uv $( cd /var/db/pkg; ls -1 | fgrep -v pkgdb.byfile.db | sed 's/-[^-]*$//' )

Hopefully that will work.
Reply With Quote
Old 19th March 2013
pawaan pawaan is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 82
Default

Thanks IdOp
It seemed working but it took me such a long time that I killed it and went back to old way.
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
Linux Binary: cannot execute binary file xmorg FreeBSD General 3 25th September 2010 03:46 PM
New linux & unix installs with old raid/lvm set-up th3professor Other BSD and UNIX/UNIX-like 2 7th July 2010 10:08 AM
NetBSD 4.0: your experiences with binary / source pkgs? anomie NetBSD Package System (pkgsrc) 10 23rd December 2008 08:12 PM
Documented installs Ville FreeBSD Installation and Upgrading 1 18th July 2008 02:12 PM
Failed Installs dctr OpenBSD Installation and Upgrading 23 4th June 2008 04:25 AM


All times are GMT. The time now is 06:10 PM.


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