While I would recommend lkraav's solution, here is another way:
$ ls /usr/portage/app-portage/eix/
ChangeLog eix-0.25.5.ebuild eix-0.29.6.ebuild eix-0.30.1.ebuild
Manifest eix-0.29.3.ebuild eix-0.30.0.ebuild metadata.xml
this will of course only give you list of all ebuilds available for eix in the portage tree (without all the nice info which eix does provide).
If you are using layman more ebuilds will be available in overlays (basically in other folders).
If you choose to make an operating system based on the Linux kernel then you have to distribute it for free under the GPL License,
That's not quite true. You can make an OS based on the Linux kernel with no constraint whatsoever, as long as you keep it for yourself. If you distribute an OS based on the Linux kernel, then you have to distribute the source code of the kernel (or any other part where you've used code from the Linux kernel). You don't have to distribute the rest. For example, most Linux distributions include some proprietary software; the GNU GPL doesn't constrain software that is distributed together with software covered by the GPL.
but if you choose to make an OS based on the Unix kernel
There is no such thing as “the Unix kernel” — not anymore. There are many Unix kernels, of which the Linux kernel is one. Some of them are based on the original Unix from Bell Labs (Solaris, HP-UX), others are not (*BSD, Linux, MINIX).
(example: an OS based on FreeBSD) do you have permission to make it closed-source and to take copyrights making it a proprietary software distributing it non-free?
FreeBSD code comes under a BSD license which is extremely liberal and includes the right to distribute proprietary software based on the BSD-licensed software. FreeBSD is not derived from the original Unix product, which was a commercial product. (BSD was originally companion software for a commercial Unix, and eventually they rewrote all the parts under a free license.)
So if somebody chose to make an OS based on FreeBSD can they sell it as their own modified version, taking copyrights or something like that? This question arose because I know that Mac OS X is based on FreeBSD and it should have used FreeBSD licenses, and OS X is a non-free, closed-source proprietary software.
Yes, the FreeBSD license allows that.
So, can you do that with Unix? Or does Apple have some sort of "agreement"?
You can't do that with the original Unix product, but that hasn't existed as a product for a long time (and there never really was a single Unix product except at the very beginning). You can do that with the Linux kernel (and with the GNU userland, too), as long as you distribute the sources for the GPL parts that you distribute (including your modifications if you modified the sources); you can keep the source of independent components (separate programs and libraries) for yourself. You can do that with FreeBSD, with basically no constraint.
Best Answer
Which licenses portage accepts is governed by the
ACCEPT_LICENSE
variable inmake.conf
. This variable is the counterpart topackage.license
the same wayUSE
is topackage.use
,ACCEPT_KEYWORDS
topackage.keywords
, etc.. By default, this variable is set to@FREE
, which means "only accept all licenses in theFREE
set". This set contains all licenses that require the user to accept them. In order to be able to install all packages without additional license-related prompts, just add the following line to/etc/portage/make.conf
:Conversely, you could also block out all non-free packages with
ACCEPT_LICENSE="@FREE"
, or choose any other combination of licenses you like. See/usr/portage/profiles/license_groups
for details