Portage tips
From Gentoo Wiki
This article is a stub. You can help by expanding it.
This article contains a list of tips for Portage users.
Tips
Search packages using a regular expression:
root #
emerge -s '%^python$'
List all packages in a category:
root #
emerge -s '@net-ftp'
Before upgrading the system, edit /var/lib/portage/world and comment out all packages you no longer want. After the upgrade, you can remove unneeded packages with the following command:
root #
emerge --ask --depclean
Resume a failed build and skip the failing package:
root #
emerge --resume --skipfirst
See also
- Portage — the official package manager and distribution system for Gentoo.
- Useful Portage tools — a list of helpful Portage-related tools.