1 |
On 5/11/2011 5:43 PM, John wrote: |
2 |
> |
3 |
> Have noticed that some packages require virtual packages to installed |
4 |
> as well. For example when installing dev-db/mysql, virtual/mysql is |
5 |
> installed as well. |
6 |
> |
7 |
> What are the purposes of these "virtual" packages?? |
8 |
|
9 |
They allow other packages to depend on the presence of a |
10 |
"service" or "feature" instead of depending on a specific |
11 |
implementation. For example, both sys-libs/pam and |
12 |
sys-auth/openpam satisfy "virtual/pam", since most |
13 |
applications will work just find against either library. |
14 |
There's about a dozen possible packages that provide |
15 |
"virtual/bootloader". |
16 |
|
17 |
It's also used to allow different architectures to have |
18 |
different "default" implementations of the same service |
19 |
(like virtual/libc). |
20 |
|
21 |
virtual/mysql, as of v5.1, can mean dev-db/mysql or |
22 |
dev-db/mariadb. |
23 |
|
24 |
--Mike |