You are not logged in.

#1 2025-12-27 09:00:01

jronald
Member
Registered: 2022-05-09
Posts: 209

yay tries to touch pacman dir when do work with aur packages only

update scripts

#!/bin/sh

yes | yay -Syu
yes | yay -Scc

problem

error: could not remove /var/cache/pacman/pkg/download-LRv4Fb: Is a directory

more info
/var/cache/pacman/pkg/ is empty before updating


logs

...
:: 1 package to upgrade/install.
1  aur/qcustomplot-qt6  2.1.1-2 -> 2.1.1-3
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
...
==> Tidying install...
  -> Removing libtool files...
  -> Removing static library files...
  -> Purging unwanted files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "qcustomplot-qt6"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Creating package "qcustomplot-qt6-debug"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: qcustomplot-qt6 2.1.1-3 (Sat 27 Dec 2025 04:52:56 PM CST)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (2) qcustomplot-qt6-2.1.1-3  qcustomplot-qt6-debug-2.1.1-3

Total Installed Size:  18.98 MiB
Net Upgrade Size:      17.30 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                                         [#############################################################] 100%
(2/2) checking package integrity                                                                       [#############################################################] 100%
(2/2) loading package files                                                                            [#############################################################] 100%
(2/2) checking for file conflicts                                                                      [#############################################################] 100%
(2/2) checking available disk space                                                                    [#############################################################] 100%
:: Processing package changes...
(1/2) upgrading qcustomplot-qt6                                                                        [#############################################################] 100%
(2/2) installing qcustomplot-qt6-debug                                                                 [#############################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...
error: could not remove /var/cache/pacman/pkg/download-LRv4Fb: Is a directory

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...
 -> exit status 255
 

Offline

#2 2025-12-27 09:41:45

astralc
Member
Registered: 2022-09-17
Posts: 114

Re: yay tries to touch pacman dir when do work with aur packages only

yay IS pacman wrapper, and will also do what pacman do. -Scc clean the pacman cache.
pacman -Scc will try to remove this folder also.

You can remove this folder manually, I think it is edge case if there was crash during download.

Offline

#3 2025-12-27 10:43:22

system72
Member
Registered: 2025-11-22
Posts: 469
Website

Re: yay tries to touch pacman dir when do work with aur packages only

the pacman dev allan said the directories download-* are a bug in pacman

Offline

#4 2025-12-27 18:56:17

killertofus
Member
Registered: 2025-02-10
Posts: 123

Re: yay tries to touch pacman dir when do work with aur packages only

update scripts are not supported on arch

Offline

Board footer

Powered by FluxBB