Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#15198 - pacman -Sy optimization

Attached to Project: Pacman
Opened by Laszlo Papp (djszapi) - Sunday, 21 June 2009, 09:32 GMT
Last edited by Dan McGee (toofishes) - Monday, 15 March 2010, 00:23 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To Xavier (shining)
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.2
Due in Version 3.4.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello!

I've got from my friend a thread of pacman optimalization ceremony.
It succedded in 'frugalware' pacman, but it's more quicker now.

You can see here the detailed description:
http://thread.gmane.org/gmane.linux.frugalware.devel/5119/focus=5132

If possible please implement it in the 'archlinux' pacman version.

Sincerelly,
Laszlo Papp
This task depends upon

Closed by  Dan McGee (toofishes)
Monday, 15 March 2010, 00:23 GMT
Reason for closing:  Implemented
Additional comments about closing:  http://projects.archlinux.org/pacman.git /commit/?id=2f4ee4341d1f97d95a9914755688 8212d1cd4507
Comment by Allan McRae (Allan) - Sunday, 21 June 2009, 09:53 GMT
So actually providing details to this bug report rather that having everyone read through a mailing list thread...

The speed up is done by only extracting the new folders in the db archive on -Sy operations as regular updater will only have a few package differences.

So this seems a waste of time as we are going to implement a full tar backend one day... ( FS#8586 ). Then no extraction would need done at. Using tar based local db would also speed up -Q operations.
Comment by Xavier (shining) - Sunday, 21 June 2009, 11:05 GMT
rebase is a perl script written by Xyne which does the same :
http://bbs.archlinux.org/viewtopic.php?id=65313
Comment by Nagy Gabor (combo) - Thursday, 25 June 2009, 12:41 GMT
Xavier: Personally I am not a big fan of millions of 3rd-party scripts. (I haven't even heard of rebase before, it is not in pacman-contrib. But it is good to know that such script exists, so thx for mentioning it.) And the existence of rebase script should not affect our decision on pacman (implement this or not), for example, yaourt has plenty of features, but we don't suggest pacman users to use that instead of "core" pacman...

I agree with Allan here, we should implement  FS#8586  instead of this request [or use ~sqlite :-P].
Comment by Xavier (shining) - Thursday, 25 June 2009, 12:57 GMT
I am not a big fan either.
But if we reject this bug because of future plan for pacman, it is useful to know this script exists in the meantime :)
Comment by Nagy Gabor (combo) - Friday, 26 June 2009, 23:53 GMT
I've discussed this FR with the reporter on irc, and my opinion has been slightly changed:
If  FS#8586  is not implemented soon (in 3.3, for example), we may want to implement this FR first, because we can reach _notable_ speed-up at low "coding cost".

However, there is a draw-back I must mention:
If the sync database becomes corrupt, but the package directory remains valid, -Sy may not fix this sync database corruption, which is weird. (Frugalware guys kept the old behavior with -Syy to workaround this.)
Comment by Xavier (shining) - Monday, 21 September 2009, 13:33 GMT
"If possible please implement it in the 'archlinux' pacman version."

Not possible. Unless if you provide a patch, then it will be considered.
Obviously one which applies to archlinux pacman, master git branch.
Comment by Allan McRae (Allan) - Saturday, 06 March 2010, 11:14 GMT Comment by Xavier (shining) - Saturday, 06 March 2010, 11:23 GMT
Indeed, I sent that to the ML but Dan never ACKed it.
I got a very useful review from Henning Garus though and re-submitted a fixed patch.
Comment by Allan McRae (Allan) - Saturday, 06 March 2010, 12:32 GMT
Hmm... Dan broke the patch: http://projects.archlinux.org/pacman.git/commit/?id=d2dbb04a :P I had a quick look but I do not understand some of the changes Dan made without looking deeper so I could not rebase the patch.

Loading...