Does pacman have a multithreading option?
Does pacman have the ability to upgrade/install multiple packages simultaneously? I understand that some packages must be installed before others because of dependencies, but would it be possible to upgrade/install two different "trees" of dependencies at the same time?
About this post
- Posted
- Archived
- Score
- 16 · 100% up
- Kind
- Text
- ID
- 4e1m63
11 comments
No, not that a multithreading option would help you, pacman is limited by the (slow) speed of your storage system. If it's slow consider getting a faster storage device like an SSD
There may be a benefit to having multiple downloads going at once. Fedora/dnf does this I think.
powerpillis a pacman wrapper that multithreads downloads.As others have said you can use powerpill for parallel and segmented downloads but I think that actually unpacking and installing multiple packages at a time could have some really negative effects on stability and troubleshooting.
Also I'm pretty sure trying to unpack multiple at a time wouldn't be much faster than devoting the same amount of resources to unpacking them sequentially.
There is a partial patchset that would allow us to use threading for integrity checks, filesystem conflicts etc. Extracting packages is probably best staying one package at a time as that is mostly IO bound.
Parallel downloads could be achieved - I'm fairly sure curl has multithread support. However, the total amount of people working on the download code at the moment is approximately zero...