Skip to content

Commit 3dcb996

Browse files
flexibeastericonr
authored andcommitted
advanced-usage: Mention virtualpkg.
1 parent b0502f5 commit 3dcb996

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/xbps/advanced-usage.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,15 @@ ignorepkg=sudo
5656

5757
You will then be able to remove the `sudo` package using
5858
[xbps-remove(1)](https://man.voidlinux.org/xbps-remove.1).
59+
60+
## Virtual Packages
61+
62+
Virtual packages can be created with
63+
[xbps.d(5)](https://man.voidlinux.org/xbps.d.5) `virtualpkg` entries. Any
64+
request to the virtual package will be resolved to the real package. For
65+
example, to create a `linux` virtual package which will resolve to the
66+
`linux5.6` package, create an `xbps.d` configuration file with the contents:
67+
68+
```
69+
virtualpkg=linux:linux5.6
70+
```

0 commit comments

Comments
 (0)