|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
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.
|
|
|||
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.
|
|
||||
Quote:
Quote:
|
|
||||
Quote:
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 |
|
|||
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. |
|
||||
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. |
|
|||
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 ? |
|
||||
Quote:
# 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. |
|
|||
Thanks IdOp
It seemed working but it took me such a long time that I killed it and went back to old way. |
|
|
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 |