Skip to content

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?

16 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
16 · 100% up
Kind
Text
ID
4e1m63

Author

6
posts
6
comments
1
media
View profile

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

21 points

There may be a benefit to having multiple downloads going at once. Fedora/dnf does this I think.

8 points

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.

3 points

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...

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.