Hi everyone. I have a local FTP server that contains many packages. When doing an install I want my pc to first check this server before going onto the net. I have set up the following in a shell script on the pc being installed:
LAN_FTP=192.168.3.11 OS_V0=$(uname -r) PKG_PATH=ftp://$LAN_FTP/OpenBSD/$OS_V0/packages/:ftp://ftp.openbsd.org/pub/OpenBSD/$OS_V0/packages/i386/ export PKG_PATH pkg_add -v postfix The thing is that pkg_add wants to go directly to the internet site instead of the local one: Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/: Unknown command. Ambiguous: postfix could be postfix-2.3.2 postfix-2.3.2-ldap postfix-2.3.2-mysql postfix-2.3.2-sasl2 postfix-2.4.20060727 postfix-2.4.20060727-ldap postfix-2.4.20060727-mysql postfix-2.4.20060727-sasl2 But my server contains postfix-2.3.2.tgz: $ lftp 192.168.3.11 lftp 192.168.3.11 ~ > cd OpenBSD/4.0/packages/ cd ok, cwd=/OpenBSD/4.0/packages lftp 192.168.3.11 /OpenBSD/4.0/packages > ls postfix* -rw-r--r-- 1 0 0 3512600 Sep 23 17:07 postfix-2.3.2.tgz lftp 192.168.3.11 /OpenBSD/4.0/packages > mget postfix-2.3.2.tgz 3512600 bytes transferred Thanks for any pointers. PM