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#68774 - [pacman] pacman -Qi <package> is slow the first time launched after boot.

Attached to Project: Pacman
Opened by Munzir Taha (munzirtaha) - Saturday, 28 November 2020, 16:42 GMT
Last edited by Allan McRae (Allan) - Wednesday, 09 December 2020, 00:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I launch pacman -Qi <package> after a fresh boot, pacman is slow and it takes 14 secs in my 5400-RPM HDD. I traced the system calls and the command opens and read thousands of files in the local database at /var/lib/pacman/local/, which is unnecessary for a -Qi option. For searching operations that's understandable but for this operation, it should be a direct read to that package files only.

Additional info:
* package version(s): pacman 5.2.2-1

Steps to reproduce:

$ time pacman -Qi aalib
Name : aalib
Version : 1.4rc5-14
Description : A portable ASCII art graphic library
Architecture : x86_64
URL : http://aa-project.sourceforge.net/aalib/
Licenses : LGPL
Groups : None
Provides : None
Depends On : gpm libx11
Optional Deps : None
Required By : gst-plugins-good
Optional For : vlc xine-lib
Conflicts With : None
Replaces : None
Installed Size : 287.11 KiB
Packager : Allan McRae <allan@archlinux.org>
Build Date : Thu 14 May 2020 04:35:32 PM CAT
Install Date : Thu 14 May 2020 11:23:53 PM CAT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature


real 0m14.146s
user 0m0.175s
sys 0m0.622s
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 09 December 2020, 00:46 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Saturday, 28 November 2020, 20:23 GMT
I does need to read all files to calculate this:
Required By : gst-plugins-good
Comment by Munzir Taha (munzirtaha) - Sunday, 29 November 2020, 12:14 GMT
That makes sense. Thanks for the clarification.

Loading...