pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_chk: updating installed packages w/ FTP?



On Sat, 29 Apr 2006, Jeremy C. Reed wrote:
I don't use it myself. But I read recently on a DragonFly list:

pkg_chk -P ftp://binary/url -abg (generate pkg_chk.conf if nonexistent)

pkg_chk -P ftp://binary/url -abf (fetch all needed packages)

pkg_chk -P //wherever/previous/step/put/binaries -abu (upgrade)

The -P sets PACKAGES and code has support for http://|ftp://.

Can you give a working (tested) example here?

Already the first command fails for me, and it's not clear to me what EXACTLY I have to to give to -P - I know that pkg_add is picky with PKG_PATH, so I've tried what came to my mind, with little success:

        miyu% pkg_chk -P ftp://ftp.de.netbsd.org/pub/NetBSD/packages/3.0/i386 
-abg
        Failed to open file.
        miyu% pkg_chk -P ftp://ftp.de.netbsd.org/pub/NetBSD/packages/3.0/i386/ 
-abg
        Failed to change directory.
        miyu% pkg_chk -P 
ftp://ftp.de.netbsd.org/pub/NetBSD/packages/3.0/i386/All -abg
        Failed to open file.
        miyu% pkg_chk -P 
ftp://ftp.de.netbsd.org/pub/NetBSD/packages/3.0/i386/All/ -abg
        Failed to change directory.
        miyu%

Also, I've noticed that the usage of pkg_chk is incomplete, at least -q is not mentioned.


 - Hubert



Home | Main Index | Thread Index | Old Index