#1
  1. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110

    Changing path for pkg_add


    Hi guys,

    I want to install screen on a FreeBSD 4 box. I use pkg_add -r screen, but the file doesn't exist under the search path on the ports ftp location:

    bash-2.05b$ pkg_add -r screen
    Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/screen.tgz: File unavailable (e.g., file not found, no access)
    pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/screen.tgz' by URL
    I have tried to set the $PACKAGESITE environment variable to point to ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-stable/misc. O chose that path, because logging in over ftp and browsing actually shows the package tgz file there - anyway, I still get the same error. If I export my new $PACKAGESITE env var, I get the error "pkg_add: can't stat package file 'screen'".

    How can I fix this to point to the new path.. also, I realise I could probably just download the package file and install it directly. Are there any 'best practices' to bear in mind when not using -r ?

    thanks all

    christo
    This is me: http://chris.uk.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    Prague, Czech Republic
    Posts
    869
    Rep Power
    71
    http_proxy or ftp_proxy

    did you consider those too?
    If you need the package quickly installed, download it and just pkg_add it.
  4. #3
  5. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110
    I'm not using a proxy for http or ftp - and pkg_add works fine for some packages so long as they are in the expected location on ftp.freebsd.org.

    christo
    This is me: http://chris.uk.com
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Posts
    297
    Rep Power
    20
    pkg_add -rv ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/path/to/screen.tgz
  8. #5
  9. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110
    Thanks Direhit - I'm off the network now, with no VPN, so I'll try it and will let you know on monday.

    cheers


    christo
    This is me: http://chris.uk.com
  10. #6
  11. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110
    well it look I misread 'screem' as 'screen' and there isn't a screen port for freebsd-4

    nevermind.

    christo
    This is me: http://chris.uk.com

IMN logo majestic logo threadwatch logo seochat tools logo