Portage tips

From Gentoo Wiki
Jump to: navigation, search
This article is a stub. You can help by expanding it.
  1. To search packages using a regular expression:
    root #emerge -s '%^python$'
  2. To list all packages in a category:
    root #emerge -s '@net-ftp'
  3. 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
  4. To resume a failed build and skip the failing package:
    root #emerge --resume --skipfirst

See also