Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2006 03:02:48 -0300
From:      Duane Whitty <duane@greenmeadow.ca>
To:        Low Kian Seong <freebsd.low@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do you tell pkg_add to just download the packages ?
Message-ID:  <4445D288.8060108@greenmeadow.ca>
In-Reply-To: <a6baaade0604182128h71f6ca9an95f86846aca5292f@mail.gmail.com>
References:  <a6baaade0604182128h71f6ca9an95f86846aca5292f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Low Kian Seong wrote:
> Dear all,
>
> I come from a debian background, and in debian you can pass an argument to
> apt-get to tell it to download all the packages first without installing
> them first, is there a similar argument that I can pass to pkg_add ( I want
> to use binaries ) or are there other tools I can use ?
>
> Thanks.
> _______________________________________________
>   
Hi,

Try portupgrade(1)  (man 1 portupgrade)

# cd /usr/ports
# portupgrade -NFPPv  name-of-package

This says this may be a new installation "N"
Go get the files (packages), do not install anything "F"
Use packages only, fail if packages not available "PP" (important to use 
two upper-case Ps here)
Be verbose "v"

If you also want to fetch dependencies you can add -R.  This will 
recurse through all
the dependencies the new package needs

# cd /usr/ports
# portupgrade -NFPPRv  name-of-package

Best Regards,

Duane Whitty
-- 
duane@greenmeadow.ca



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4445D288.8060108>