From owner-freebsd-questions@FreeBSD.ORG Tue Dec 13 19:55:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B86941065670 for ; Tue, 13 Dec 2011 19:55:57 +0000 (UTC) (envelope-from linnemannr@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9278E8FC14 for ; Tue, 13 Dec 2011 19:55:57 +0000 (UTC) Received: by pbcc3 with SMTP id c3so540516pbc.13 for ; Tue, 13 Dec 2011 11:55:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rqTOu9ZXj70ZF8wgmDVf7/fQ8WL28DcPLcNQeXk0xaM=; b=q70ohu1k50RgMspQDYKYD1k2FQow7diP6DFtSmhYi6aQGRFxCgA9tLXKdNbzIE4UBe pTbUOXFyzHEuBWRkcnt4mHgIG0w4xBlk+EBPMMzNNjJxu6AhIGYxUc9Vy/zsZ5x6aVpA GYQdaGCEZ4Z/CZpPkLK74Ltn8jjq3n+BVYDGk= MIME-Version: 1.0 Received: by 10.68.74.4 with SMTP id p4mr45961128pbv.123.1323806156989; Tue, 13 Dec 2011 11:55:56 -0800 (PST) Sender: linnemannr@gmail.com Received: by 10.142.195.13 with HTTP; Tue, 13 Dec 2011 11:55:56 -0800 (PST) In-Reply-To: <4EE57E87.40409@mage.hu> References: <4EE57E87.40409@mage.hu> Date: Tue, 13 Dec 2011 13:55:56 -0600 X-Google-Sender-Auth: SzZ6Kdtr2qtFzG5WHMtmfrbb0hM Message-ID: From: Reid Linnemann To: Mage Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: pkg_add vs portmaster 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: Tue, 13 Dec 2011 19:55:57 -0000 On Sun, Dec 11, 2011 at 10:09 PM, Mage wrote: > =A0 =A0 =A0 =A0Hello, > > why is that > > "pkg_add -r x11/kde4" could not install kde4 (404 not found) but "portmas= ter > -P x11/kde4" did, however > "portmaster -P xorg" didn't install xorg (it just reinstalled some module= s) > then "pkg_add -r xorg" installed it. > > I am a bit confused with these. > > I was reading this: > http://freebsd.kde.org/ > and this: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-install.html > > First I installed kde4 then xorg. My ports are up to date. > > =A0 =A0 =A0 =A0Mage > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" I think what you're running into here is a difference in semantics between the pkg_* tools and the ports tools. When using pkg_add -r, you do not need to specify the category. pkg_add will determine the proper objformat and release to fetch from ftp, so in this case "pkg_add -r xorg" will work just fine. When you use portmaster, it's the opposite. You do need to tell it 'x11/xorg' so it knows you want a specific port in /usr/ports instead of a glob pattern of an existing port in /var/db/pkg - see this in the SYNOPSIS section of the man page portmaster(8) ... portmaster [Common Flags] full name of port directory in /var/db/pkg portmaster [Common Flags] full path to /usr/ports/foo/bar portmaster [Common Flags] glob pattern of directories from /var/db/pkg ... Does that make more sense?