This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Portage tips
From Gentoo Wiki (test)
This article is a stub. You can help by expanding it.
- To search packages using a regular expression:
root #
emerge -s '%^python$'
- To 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, users can remove unneeded packages with the following command:
root #
emerge --ask --depclean
- To 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