Date: Tue, 13 Dec 2011 13:55:56 -0600 From: Reid Linnemann <lreid@cs.okstate.edu> To: Mage <mage@mage.hu> Cc: freebsd-questions@freebsd.org Subject: Re: pkg_add vs portmaster Message-ID: <CA%2B0MdpOBsBd2VpJ2poOvUFz6OrGdORNfDdds1-%2Bs0i6nqMn=1Q@mail.gmail.com> In-Reply-To: <4EE57E87.40409@mage.hu> References: <4EE57E87.40409@mage.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 11, 2011 at 10:09 PM, Mage <mage@mage.hu> 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B0MdpOBsBd2VpJ2poOvUFz6OrGdORNfDdds1-%2Bs0i6nqMn=1Q>