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

    Keep all tmp files downloaded while installing?

    Scheduled Pinned Locked Moved Help and Support
    filesystemgitsetup
    6 Posts 3 Posters 1.4k 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.
    • G
      genewitch
      last edited by

      For instance, there's a few copies of ffmpeg downloaded that are quite large. I am running through a bunch of my old hardware and setting up retropie to see how they work (like old mini PCs, old AMD machines with built in radeon HD cards, etc) and i have 6mbit internet, so i'd like to keep the tmp files that get deleted after the compilation and install are done. This way if i install a different OS (ubuntu 16.04 server instead of desktop, for instance) or reformat, or install on a different machine, i can just drop in the existing repo and only get the deltas from github.

      To wit: my RetroPie-Setup directory, after a complete install is 7MB. During the install it went as high as 500MB (installing PSP emulator) - I'd like to keep all those git folders!

      Thank you in advance. I searched here and github repo for 'tmp', 'temp', and 'temporary' with and without "keep files" etc. to no avail.

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

        @genewitch The setup script - when building from source - will automatically download the sources to the tmp/build subfolder and then delete them after building. There isn't an option to keep the sources, however any git downloads are performed with the --depth 1 option, so only the most recent version of the repository will be downloaded. Most likely the size you're seeing (500 mb) is from the compiled objects, not from the source itself.

        1 Reply Last reply Reply Quote 1
        • G
          genewitch
          last edited by

          the PSP emulator has to fetch quite a few libraries like ffmpeg, and before it actually goes through and compiles everything, the local clones are large, and then it wipes the local clones. I'm wondering how to fix that with a command switch. If not i can just wait for the clones to finish and control-C the installer and make a copy of the directories, i guess? or edit the scripts to not do clean-up.

          Basically if i want to do 4 installs back to back on the same hardware to test different OS configurations, i don't want to have to redownload all those library sources.

          Thanks for your reply!

          BuZzB 1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators @genewitch
            last edited by

            @genewitch experimental option - sudo __persistent_repos=1 ~/RetroPie-Setup/retropie_setup.sh

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            G 1 Reply Last reply Reply Quote 1
            • G
              genewitch @BuZz
              last edited by

              @buzz thank you so much!

              1 Reply Last reply Reply Quote 0
              • G
                genewitch
                last edited by

                to anyone else, this was added because of this thread on github
                https://github.com/RetroPie/RetroPie-Setup/issues/1743

                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.