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

yay -Sc does not clean the .cache/yay folder #1758

Closed
arch-user-france1 opened this issue Jun 9, 2022 · 10 comments
Closed

yay -Sc does not clean the .cache/yay folder #1758

arch-user-france1 opened this issue Jun 9, 2022 · 10 comments

Comments

@arch-user-france1
Copy link

arch-user-france1 commented Jun 9, 2022

Affected Version

yay v11.1.2 - libalpm v13.0.1

Describe the bug

Reproduction Steps

  1. yay -Sc
  2. I chose yes for every question, make sure that you at least say yes if it asks you to clean the yay cache.
  3. See result: du -hc ~/.cache/yay | tail -1 said me 37 GB.

Expected behavior

Yay would clean the cache .cache/yay

Output

{
        "aururl": "https://aur.archlinux.org",
        "buildDir": "/home/france1/.cache/yay",
        "editor": "",
        "editorflags": "",
        "makepkgbin": "makepkg",
        "makepkgconf": "",
        "pacmanbin": "pacman",
        "pacmanconf": "/etc/pacman.conf",
        "redownload": "no",
        "rebuild": "no",
        "answerclean": "",
        "answerdiff": "",
        "answeredit": "",
        "answerupgrade": "",
        "gitbin": "git",
        "gpgbin": "gpg",
        "gpgflags": "",
        "mflags": "",
        "sortby": "votes",
        "searchby": "name-desc",
        "gitflags": "",
        "removemake": "ask",
        "sudobin": "sudo",
        "sudoflags": "",
        "requestsplitn": 150,
        "completionrefreshtime": 7,
        "bottomup": true,
        "sudoloop": false,
        "timeupdate": false,
        "devel": false,
        "cleanAfter": false,
        "provides": true,
        "pgpfetch": true,
        "upgrademenu": true,
        "cleanmenu": true,
        "diffmenu": true,
        "editmenu": false,
        "combinedupgrade": false,
        "useask": false,
        "batchinstall": false,
        "singlelineresults": false,
        "version": "11.1.2"
}

Note: There was no feedback at all, it just asked for all the file locations and then closed. What did I answer wrong?
And this thing was here: Fehler: Konnte Datei /var/cache/pacman/pkg/gedit-plugins-41.0-1-x86_64.pkg.tar.zst nicht öffnen: Truncated zstd input

@pulga10
Copy link

pulga10 commented Jun 11, 2022

See my comment here: #772 (comment)

I'm having the same problem. The issue seems to be, that the dialogues cannot handle non-english keyboard input. In my case (german) it asks [J/N] instead of [Y/N], however pressing J, Y or Z (since Y and Z are swapped in german layout) is interpreted as "no". A workaround is just pressing Return on the last prompt.

Edit: This doesn't apply to the pacman prompts, only yay (i.e. the last one)

@arch-user-france1
Copy link
Author

arch-user-france1 commented Jun 14, 2022

Maybe nothing happened because it 'removes old packages in caches' and not every package.

@Jguer
Copy link
Owner

Jguer commented Jun 17, 2022

yay v11.2.0 should have fixed the issues related with the german locale and the input props. Could you give a try?

@pulga10
Copy link

pulga10 commented Jun 17, 2022

yay v11.2.0 should have fixed the issues related with the german locale and the input props. Could you give a try?

For yay -Scc it works now for me, for yay -Sc not (still only pressing return works).

@douglascamata
Copy link

I have the same issue and I don't use german locale.

❯ yay --version
yay v11.2.0.r2.g0fdfe79 - libalpm v13.0.1

@Jguer
Copy link
Owner

Jguer commented Jul 25, 2022

Do you use any other locale @douglascamata ?

@douglascamata
Copy link

Nope, I think I use en-US. 🤔

Let me try to confirm it after work and I'll let you know exactly which one I use.

@douglascamata
Copy link

Here's my locale configuration:

❯ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

@mihalycsaba
Copy link

hey, I don't think it clears my cache

[sudo] password for csaba: 
Packages to keep:
  All locally installed packages

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n] n

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] n

Build directory: /home/csaba/.cache/yay
:: Do you want to remove all other AUR packages from cache? [Y/n] y
removing AUR packages from cache...
:: Do you want to remove ALL untracked AUR files? [Y/n] y
removing untracked AUR files from cache...
Removing proton-ge-custom-2:GE.Proton7.37-1-x86_64.pkg.tar.zst
Removing wine-gecko-2.47.3-x86.tar.xz
Removing wine-gecko-2.47.3-x86_64.tar.xz
Removing wine-mono-7.3.1-x86.tar.xz

[csaba@csaba-mini ~]$ du -sh /home/csaba/.cache/yay/
6.7G	/home/csaba/.cache/yay/

[csaba@csaba-mini yay]$ ls
adw-gtk3                   libgbinder                python-steamgriddb
afdko                      libglibutil               python-thefuzz
android-studio             libucl-git                python-ufonormalizer
anydesk-bin                mangohud                  python-ufoprocessor
apostrophe                 mingw-w64-tools           python-vdf
appimagelauncher           newm-git                  spotify
asf                        onlyoffice-bin            steamos-compositor-plus
bitstower-markets          patool                    steamtinkerlaunch
bottles                    proton                    stremio
completion.cache           proton-ge-custom          teamviewer
dotnet-core-5.0-bin        protontricks              tela-icon-theme
fvs                        psautohint                timeshift
galaxybudsclient-bin       python-booleanoperations  tor-browser
geforcenow-electron        python-dasbus             vcs.json
google-chrome              python-defcon             ventoy-bin
goverlay-bin               python-fontmath           visual-studio-code-bin
heroic-games-launcher-bin  python-fontparts          vkbasalt
hikari                     python-fontpens           waydroid
icoextract                 python-gbinder            waydroid-image
jellyfin                   python-imageio            wine-ge-custom
jellyfin-media-player      python-mutatormath
lib32-mangohud             python-pyclipper

[csaba@csaba-mini proton-ge-custom]$ ls
0001-AUR-pkgbuild-changes.patch  liberation-fonts
dav1d                            openvr
dxil-spirv                       OpenXR-SDK
dxvk                             PKGBUILD
dxvk-nvapi                       proton-cargo
ffmpeg                           protonfixes-gloriouseggroll
glslang                          proton-ge-custom
graphene                         proton-ge-custom.install
gst-libav                        SPIRV-Headers
gst-orc                          vkd3d-proton
gst-plugins-bad                  vkd3d-valve
gst-plugins-base                 Vulkan-Headers
gst-plugins-good                 Vulkan-Loader
gst-plugins-rs                   wine-staging
gst-plugins-ugly                 wine-valve
gstreamer 

@mihalycsaba
Copy link

here's my locale and yay version, I'm on endeavouros(arch)

[csaba@csaba-mini yay]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

[csaba@csaba-mini yay]$ yay --version
yay v11.3.0 - libalpm v13.0.1

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

No branches or pull requests

5 participants