Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

man-db triggers slows down crossgrade, perhaps disable for most of it? #12

Open
chrissamuel opened this issue Jul 2, 2023 · 2 comments

Comments

@chrissamuel
Copy link

Hi there,

Whilst watching my i386 to amd64 crossgrade I noticed a fair bit of time spent with:

Processing triggers for man-db:i386 (2.9.4-2) ...

Turns out this is controlled by the presence of the file /var/lib/man-db/auto-update and so it might be possible to speed up the crossgrade by checking if that file is present and, if so, moving it out of the way and remembering to recreate it towards the end (or should the process abort) so it does get run at least once prior to the end of the crossgrade.

What do you think?

All the best,
Chris

@chrissamuel
Copy link
Author

chrissamuel commented Jul 2, 2023

Meant to say - with that file missing you instead see:

Processing triggers for man-db (2.9.4-2) ...
Not building database; man-db/auto-update is not 'true'.

and it then carries on pretty quickly.

@chrissamuel
Copy link
Author

I suspect when man-db gets crossgraded to amd64 that file comes back, so I had to move it out of the way again (hence why in the previous comment the amd64 version showed itself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant