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.
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.
FS#26664 - Extracting only differing files when upgrading packages.
Attached to Project:
Pacman
Opened by Thomas Dziedzic (tomd123) - Friday, 28 October 2011, 14:25 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 22 November 2011, 03:45 GMT
Opened by Thomas Dziedzic (tomd123) - Friday, 28 October 2011, 14:25 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 22 November 2011, 03:45 GMT
|
DetailsSummary and Info:
Currently pacman extracts all files from a package when it upgrades a package from version x to version y I was thinking that instead of doing all this extracting, pacman could keep a list of md5sums of the files in a package. When a package gets installed which isn't installed currently, it will just extract all the files like it does now. When a package gets upgraded though, it would check version x's md5sums against version y's md5sums and take the following actions: version y contains a file in version x, it compares the md5sums and if they don't match, extract that file, else if they match, don't extract. It would get the list from the original files, in version x, so it doesn't have to compute any md5sums. If a user modifies the files, then overwrite it even if the md5sum of the old file matches the md5sum of the new file. Some benefits: minor overhead as far as I can tell extracting only the files that are needed during upgrade would be less stressful to the hdd. This could also benefit people with ssds. |
This task depends upon
Closed by Dan McGee (toofishes)
Tuesday, 22 November 2011, 03:45 GMT
Reason for closing: Won't implement
Additional comments about closing: See comments.
Tuesday, 22 November 2011, 03:45 GMT
Reason for closing: Won't implement
Additional comments about closing: See comments.
calling it an rsyncable package isn't the word that comes to mind when I describe this since rsync makes sure the contents match.
if we rsync 1 package's contents with / then we will get an empty / with just the package contents ;)
If this get's implemented, we could add another flag to pacman -Q to verify if all the files on your / match the ones in the packages.
The benefit seems academic at best, totally wrong at worst- what if I am trying to reinstall a package to fix some fubar'ed files? Do I need a --no-really-force-this flag? No thanks.
Finally, the check data we can store on all known installed files is something that is addressed in
FS#11091.I'm going to close this as "won't implement" due to these various concerns and because I don't want to fool anyone into thinking a bug report is getting looked at.