Re: pacman caches packages with u=rw, g=, o= permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On Wed, Jan 19, 2022 at 15:44:30 +0000, u34--- via arch-general wrote:
> I have tried to look into the checkupdates script, but got confused. It 
> looks not long bash script. Does it do the work by copying the system-wide 
> sync databases to a temporary databases, works on those temporary databases, 
> and wiped them before exiting?

No, it downloads a fresh copy of the sync database (the point is, after
all, to have the latest sync database) to a temporary location. The most
interesting part for this is probably +/- around line 100.

It also doesn't wipe it after that. Any subsequent invocations of
checkupdates will reuse that sync DB (assuming $CHECKUPDATES_DB is not
changed and the system isn't rebooted in case it's on a tmpfs), to avoid
unnecessary re-downloading if there are no changes on the mirror.

I personally keep my $CHECKUPDATES_DB in
$XDG_STATE_HOME/pacman/checkupdates, for instance.

Best,
Tinu

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux