From owner-freebsd-questions Sun Aug 11 1:29:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B33CA37B400 for ; Sun, 11 Aug 2002 01:29:47 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92EB543E6A for ; Sun, 11 Aug 2002 01:29:45 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7B8TgTZ002424; Sun, 11 Aug 2002 09:29:42 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7B8Tax9002423; Sun, 11 Aug 2002 09:29:36 +0100 (BST) Date: Sun, 11 Aug 2002 09:29:36 +0100 From: Matthew Seaman To: Brian Astill Cc: Matthew Seaman , Lord Raiden , freebsd-questions@FreeBSD.ORG Subject: Re: Question about installing ports from CD Message-ID: <20020811082936.GA2350@happy-idiot-talk.infracaninophi> References: <4.2.0.58.20020810013444.0096eba0@pop.netzero.net> <20020810111112.GG90130@happy-idiot-talk.infracaninophi> <200208110212.g7B2CSL42796@tierzero.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208110212.g7B2CSL42796@tierzero.apana.org.au> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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