From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 18:48:27 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 670FD16A417 for ; Wed, 5 Sep 2007 18:48:27 +0000 (UTC) (envelope-from fatman@crackmonkey.us) Received: from crackmonkey.us (crackmonkey.us [70.58.166.197]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4B513C45E for ; Wed, 5 Sep 2007 18:48:27 +0000 (UTC) (envelope-from fatman@crackmonkey.us) Received: from tarani-bosatsu.dreamtrack.dnsalias.com (cpc1-swin7-0-0-cust216.brhm.cable.ntl.com [::ffff:86.18.88.217]) (AUTH: PLAIN fatman, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by crackmonkey.us with esmtp; Wed, 05 Sep 2007 12:37:41 -0600 id 00194380.46DEF77A.0000575D Message-ID: <46DEF6D0.8010108@crackmonkey.us> Date: Wed, 05 Sep 2007 19:34:56 +0100 From: Adam J Richardson User-Agent: Thunderbird 2.0.0.6 (X11/20070830) MIME-Version: 1.0 To: "Michael C. Cambria" References: <46DECE7F.3000909@fid4.com> In-Reply-To: <46DECE7F.3000909@fid4.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: /usr/ports & portupgrade when only using packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 18:48:27 -0000 Michael C. Cambria wrote: > I need to set up a system that can only use packages. I've always used > ports, so I'm not exactly sure if I'm doing things properly. > > Should I (do I need to) use portsnap to populate /usr/ports? Unless I > really need something that doesn't have a pkg available, I will not be > using ports. > > I've always used portupgrade, and plan to do so, using -PP (only > packages) for this setup. My first question is should I? > > Doing'pkg_add -r portupgrade' and it installed fine. > Using pkgdb -F however, resulted in these messages: > > bsd# pkgdb -F > cd: can't cd to /usr/ports > cd: can't cd to /usr/ports/ports-mgmt/portupgrade > cd: can't cd to /usr/ports > ----> Chcecking the package registry database > > Any help appreciated. Hi Mike. Let me see if I've got this... you want to be able to install packages, but not ports. Well, that's easy... # rm -R /usr/ports Saves you a load of disk space, too. The only downside is you get slightly older versions of software with packages. Oh, and don't use portsnap, it'll undo that "rm -R" for you. Using "portupgrade -PP" works perfectly well on those rare occasions when I want to install a package rather than a port. I guess you could delete all executables matching "port*", but that might be going too far. You could get rid of two of those error messages by doing a: # mkdir /usr/ports Regards, Adam J Richardson