lk/distros/void/xbps.md

106 lines
1.5 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "xbps"
2023-01-06 20:13:45 +00:00
tags: [ "Documentation", "Void" ]
2022-01-16 18:20:39 +00:00
---
2020-01-02 00:04:35 +00:00
Install cowsay
> xbps-install cowsay
Look for cowsay
> xbps-query -Rs cowsay
2022-11-06 13:28:09 +00:00
Upgrade current packages.
`-R` looks at repositories, `-s` makes a sloppy search (for rough matches).
2020-01-02 00:04:35 +00:00
> xbps-install -Suv
Remove cowsay
> xbps-remove cowsay
...and all dependencies
> xbps-remove -R cowsay
Reinstall cowsay
> xbps-install -f
Reconfigure all packages. Useful for breakages.
> xbps-pkgdb -a
2022-11-06 13:28:09 +00:00
Remove all orphaned dependencies.
2020-01-02 00:04:35 +00:00
> xbps-remove -o
Show information about cowsay
> xbps-query -Rs cows
List packages requiring updates.
> xbps-install -Suvn
List what's required for cowsay
> xbps-query -x cowsay
List what's installed.
> xbps-query -l
Clean.
> xbps-remove -O
2022-11-06 13:28:09 +00:00
Update list of available packages ('sync')
2020-01-02 00:04:35 +00:00
> xbps-install -S
Remove package information.
> xbps-query -R
Do I have cowsay installed?
> xbps-query -s cowsay
What packages are pointless?
> xbps-query -O
> xbps-install -Sn cowsay
# Advanced
2022-11-06 13:28:09 +00:00
A dry-run of installing cowsay, without actually intalling.
2020-01-02 00:04:35 +00:00
> xbps-query -x cowsay
Show cowsay's dependencies. The -R flag's required for a remote package.
> xbps-query -X cowsay
Show the reverse dependencies of a package.
> xbps-query -XR cowsay
Show all reverse dependencies of a package, including repository packages.
> xbps-query -m
List all manually installed software.
# Problems
Look for broken packages.
> sudo xbps-pkgdb -a
2022-11-06 13:28:09 +00:00
And if you've found any, you might reconfigure all packages forcefully:
2020-01-02 00:04:35 +00:00
> sudo xbps-reconfigure -af