NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to ensure pkgsrc groff is preferred over groff in base



On 05/30/15 09:02, Gerard Lally wrote:
Thanks to all who contributed to the recent groff thread. I now
understand the pros and cons a bit better.

I posted the following question here, to netbsd-users, instead of
pkgsrc-users because it is connected to that thread.

What is the correct way to ensure pkgsrc binaries and libraries are
used instead of their equivalents in base? For example, after installing
pkgsrc groff I now have groff, grn, grodvi, grog and more in both
/usr/bin and /usr/pkg/bin. Do I create multiple aliases, or just change
$PATH so that /usr/pkg/bin is before /usr/bin? For user, and/or root?
Would changing $PATH create other problems elsewhere?

I realise this is basic UNIX stuff I should understand better; it's
just that I would like to know the standard or correct way of doing it.

--
Gerard Lally


Unless someone else more knowledgeable says otherwise, I would put /usr/pkg/bin ahead of /usr/bin for all users you want it that way & set sail. Generally, you can put more specific directories ahead of the most general directories in your path shell variables, that is what most commercial packages do in their install scripts, & it is what I prefer. I think you would be AOK doing that. $0.02, no more, no less, IANAL, & all that rot ;-) ....

--

	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton Jr.



Home | Main Index | Thread Index | Old Index