Subject: Re: pkg_add problems
To: Rose, Brian <Brian.Rose@icn.siemens.com>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 06/04/2002 13:54:43
In message <637FAED82678D311AFAE0008C791D24902389B11@lmyr227a.lm.ssc.siemens.co
m>, "Rose, Brian" writes:
>
>I recently installed NetBSD (1.5.2 generic laptop) and I am am starting to
>populate the machine with the software I want using the pkg_add utility. I
>have not installed pkgsrc, choosing instead to rely on the precompiled
>binaries.
>
>I am having two problems
>
>(1) I set the environment variable PKG_PATH as follows:
>set PKG_PATH="ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All"
>
>and 'echo $PKG_PATH' returns the url fine. Keep in mind this is the default
>shell.
>
>When I go to get a package the following error occurs:
>
>#pkg_add bash-2.05.tgz
>pkg_add: can't find package 'bash-2.05.tgz'
>
>Yet, if I do the following
>pkg_add ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All/bash-2.05.tgz
>
>it works. Any ideas why pkg_add is not getting the path? The NetBSD guide
>shows the export command, but that is not available in the default install.
>I assume that the author was using a different shell.
>
>
Did you do 'set' or 'setenv'? The latter is what you need. Use
printenv to confirm what's in your environment, i.e., what can be seen
by other programs.
--Steve Bellovin, http://www.research.att.com/~smb (me)
http://www.wilyhacker.com ("Firewalls" book)