RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Large File in .git Folder on RetroPie. Is it safe to delete?

    Scheduled Pinned Locked Moved Help and Support
    retropieconfigspackcleaning
    7 Posts 2 Posters 286 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Didyman
      last edited by

      Pi Model or other hardware: Raspberry Pi 3B+
      RetroPie Version Used: 4.8.9
      Built From: Raspberry Pi OS Lite Image from the official RetroPie website
      Guide used: Official RetroPie setup guide
      File: \\RetroPie\configs\all\retroarch\assets\.git\objects\pack\pack-5002d36db7a68a4a67a5772b28cff18d670f5874.pack

      Issue

      While running WinDirStat against the \\RetroPie\configs folder to analyze space usage, I noticed a large file (406.8 MB) located in:
      \\RetroPie\configs\all\retroarch\assets\.git\objects\pack\pack-5002d36db7a68a4a67a5772b28cff18d670f5874.pack.

      Question

      As a relatively new user to RetroPie, I am unsure if this file is essential for RetroPie functionality or if it can be safely deleted to free up space. Could you provide guidance on the purpose of this file and whether it can be removed without impacting RetroPie or RetroArch performance?

      How to replicate the situation

      1. Use WinDirStat (or a similar tool) to analyze the \\RetroPie\configs directory.
      2. Locate the .git folder inside the retroarch/assets directory and observe the large .pack file.

      Additional context

      I’m seeking advice to clean up unnecessary files without causing unintended issues.

      Thank you for your assistance!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        The file is not strictly needed, but I'm also not sure how it got there, since RetroPie doesn't include it. Did you ran an update from RetroArch's menu ? Which image - exactly - did you use to install RetroPie ?

        D 1 Reply Last reply Reply Quote 0
        • D
          Didyman @mitu
          last edited by

          @mitu Hi :)

          I used this image retropie-buster-4.8-rpi2_3_zero2w.img.gz, did the Basic setup, and yes I did the Update after that.

          Is there a command I can use to clean any file that has been used for Update?

          Or maybe I can try renaming it, restart the Pi and see if something bad happens

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Didyman
            last edited by mitu

            @Didyman said in Large File in .git Folder on RetroPie. Is it safe to delete?:

            I used this image retropie-buster-4.8-rpi2_3_zero2w.img.gz, did the Basic setup,

            I'm a bit confused - the image already has RetroPie installed, why did run the setup again ?

            yes I did the Update after that.

            Did you update RetroArch or RetroPie - I was asking if you used the RetroArch menus to update its assets/shaders/profiles/etc. .

            Is there a command I can use to clean any file that has been used for Update?

            No, but that shouldn't be necessary.

            Or maybe I can try renaming it, restart the Pi and see if something bad happens

            You can delete that file, as I said is not necessary.

            D 1 Reply Last reply Reply Quote 1
            • D
              Didyman @mitu
              last edited by

              @mitu said in Large File in .git Folder on RetroPie. Is it safe to delete?:

              @Didyman said in Large File in .git Folder on RetroPie. Is it safe to delete?:

              I used this image retropie-buster-4.8-rpi2_3_zero2w.img.gz, did the Basic setup,

              I'm a bit confused - the image already has RetroPie installed, why did run the setup again ?

              Honestly, I don't know why I did Basic install... probably because the function was there, and because not all my roms from my backup was showing up, so I thought it might help (I originally got the Pi as a gift from my brother 4 years ago, but got an issue during a recent update, so I did a flash/install from scratch)

              yes I did the Update after that.

              Did you update RetroArch or RetroPie - I was asking if you used the RetroArch menus to update its assets/shaders/profiles/etc. .

              I did Update all packages from the RetroPie script, but after I indeed updated assets and shaders in RetroArch, but as far as I am concerned, those are .zip files that are then extracted. At some point I also did sudo apt update && sudo apt upgrade in order to have everything up-to-date

              Is there a command I can use to clean any file that has been used for Update?

              No, but that shouldn't be necessary.

              Ok thanks for the info.

              Or maybe I can try renaming it, restart the Pi and see if something bad happens

              You can delete that file, as I said is not necessary.

              Perfect thank you very much. This answers my question :)

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Didyman
                last edited by mitu

                @Didyman said in Large File in .git Folder on RetroPie. Is it safe to delete?:

                ... but after I indeed updated assets and shaders in RetroArch, but as far as I am concerned, those are .zip files that are then extracted.

                Shaders and assets for RetroArch are also handled by RetroPie and they don't need to be updated from RetroArch's menu.

                Did you copy the config folder from another installation ? I think a long time ago (not sure how far) the assets folder was cloned from https://github.com/libretro/retroarch-assets.git, but that's been changed and only a minimal set of assets for RetroArch are downloaded and installed by RetroPie.

                D 1 Reply Last reply Reply Quote 0
                • D
                  Didyman @mitu
                  last edited by

                  @mitu said in Large File in .git Folder on RetroPie. Is it safe to delete?:

                  @Didyman said in Large File in .git Folder on RetroPie. Is it safe to delete?:

                  ... but after I indeed updated assets and shaders in RetroArch, but as far as I am concerned, those are .zip files that are then extracted.

                  Shaders and assets for RetroArch are also handled by RetroPie and they don't need to be updated from RetroArch's menu.

                  Did you copy the config folder from another installation ? I think a long time ago (not sure how far) the assets folder was cloned from https://github.com/libretro/retroarch-assets.git, but that's been changed and only a minimal set of assets for RetroArch are downloaded and installed by RetroPie.

                  I did a backup of the configs folder, but I didn't copy it back. I keep it as a reference point. I didn't want to "corrupt" the configs as they were coming from an old build (Stretch). I did copy the the bios and roms folders from my backup tho.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.