Portage tips

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. You can help by expanding it.

This article contains a list of tips for Portage users.


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