Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718856 - sys-apps/portage feature request: Parallel Uninstall
Summary: sys-apps/portage feature request: Parallel Uninstall
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2020-04-22 15:35 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2020-07-09 12:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-04-22 15:35:40 UTC
Portage is excessively lethargic when uninstalling large volumes of packages at once, which is considerably normal when you're using FEATURES="test", especially in the Perl and Rust ecosystem.

It would be very nice if portage respected the -j parameter for unmerge and depclean, so that tasks like verifying checksums and soforth and running pkg_post_rm can be properly parallelized.

Naturally, this probably wants some sort of graph handling, so nodes are only cleaned once their dependents are also cleaned, so that interrupting a clean minimises system breakage.

As it stands, I'd imagine there are groups of packages that take less time to install than it does to uninstall, due to install being parallel, and uninstall being purely linear.
Comment 1 Matt Turner gentoo-dev 2020-04-22 18:36:37 UTC
This would be valuable for catalyst livecd builds, which spend quite a bit of time uninstalling packages at the end of the build.
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-09 12:30:21 UTC

this will indeed speed-up tinderboxing