Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 09:29:36 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Brian Astill <bastill@sa.apana.org.au>
Cc:        Matthew Seaman <m.seaman@infracaninophile.co.uk>, Lord Raiden <raiden23@netzero.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Question about installing ports from CD
Message-ID:  <20020811082936.GA2350@happy-idiot-talk.infracaninophi>
In-Reply-To: <200208110212.g7B2CSL42796@tierzero.apana.org.au>
References:  <4.2.0.58.20020810013444.0096eba0@pop.netzero.net> <20020810111112.GG90130@happy-idiot-talk.infracaninophi> <200208110212.g7B2CSL42796@tierzero.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 11, 2002 at 11:41:42AM +0930, Brian Astill wrote:
> On Sat, 10 Aug 2002 20:41, Matthew Seaman wrote:
> > On Sat, Aug 10, 2002 at 01:38:23AM -0400, Lord Raiden wrote:
> > > 	Hi all.  I have all 4 of the Freebsd install CD's that you can
> > > download from the website and I was wondering.  Obviously you
> > > install the OS from the first cd.  But can I somehow force the
> > > computer to install my ports from one of the CD's instead of the
> > > internet?
> >
> > Disks 3 and 4 of the 4 CD set consist of as complete a set of packages
> > as possible -- everything from the ports tree that it is legal to
> > redistribute pre-compiled.
> >
> > You should be able to use pkg_add to install by mounting the CD on,
> > say, /cdrom and setting the environment variable 'PKG_PATH' to /cdrom.
> 
> Understood.  But I want to use my FBSD CDs to upgrade (eg KDE 2.2.2 to 3).
> Pkg_update isn't explicit about what (if anything) needs to be deleted prior 
> to updating.  Can you advise (or tell me where best to look)?
> Thanks.

Essentially, before you install a later version of a package you
should delete the earlier one.  You should also work from the bottom
of the dependency tree towards the top, as otherwise you may find that
a dependency package gets installed overwriting an older
version. Unfortunately, working out the dependency order can be
tedious.  Now, that is exactly what portupgrade(1) does for
installation from ports.  Knowing how good the rest of portupgrade(1)
is, you won't be surprised to find these entries in the man page:

     -P
     --use-packages         Use packages instead of ports whenever available.
                            portupgrade searches the local directories listed
                            in PKG_PATH for each package to install or upgrade
                            the current installation with, and if none is
                            found, pkg_fetch(1) is invoked to fetch one from a
                            remote site.  If it doesn't work either, the port
                            is used.

     -PP
     --use-packages-only    Never use the port even if a package is not avail-
                            able either locally or remotely, although you
                            still have to keep your ports tree up-to-date so
                            that portupgrade can check out what the latest
                            version of each port is.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
Tel: +44 1628 476614                                  Marlow
Fax: +44 0870 0522645                                 Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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