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

    need help to update retropie package script

    Scheduled Pinned Locked Moved Help and Support
    scripts update
    11 Posts 2 Posters 767 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.
    • W
      wsamael
      last edited by

      Hello I was made some script for auto install in old version of retropie and i wantmake another for a recent version.

      i was would launch package update update with a a command in a script in my old version with this commande

      "sudo bash ./RetroPie-Setup/retropie_packages.sh setup
      updatescript"
      but it's not work for recent veriosn . how can i update retropie package in recent version ?
      thanks for helping me ;)

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @wsamael
        last edited by sleve_mcdichael

        @wsamael said in need help to update retropie package script:

        sudo bash ./RetroPie-Setup/retropie_packages.sh setup
        updatescript
        

        In your post you wrote updatescript
        on a separate line but that's just a copy-and-paste error, right? Because it should all be on one line:

        sudo bash ./RetroPie-Setup/retropie_packages.sh setup updatescript
        

        (That's all typed as one line, even if the forum doesn't render it that way)

        Otherwise, that "should" work, as long as the command is ran from the $HOME directory. Try replacing the initial . with a ~ instead:

        sudo bash ~/RetroPie-Setup/retropie_packages.sh setup updatescript
        

        ...that should work from anywhere, since it references the home dir directly by the shortcut "~", rather than the relative path ".".

        Also you shouldn't need bash, since the script should be executable on its own:

        sudo ~/RetroPie-Setup/retropie_packages.sh setup updatescript
        
        W 1 Reply Last reply Reply Quote 0
        • W
          wsamael @sleve_mcdichael
          last edited by

          @sleve_mcdichael

          I wrote in one line, it's work on older version but not in the recent version :(
          Thx for the ~, but it's not work. All my script has ok except this command. In change log on retropie 4.8 i saw
          "Improvement to RetroPie package management and updating" so something has change but what ;)

          S 1 Reply Last reply Reply Quote 0
          • S
            sleve_mcdichael @wsamael
            last edited by

            @wsamael the command work on my system, just now. What error message you get, when you try?

            W 1 Reply Last reply Reply Quote 0
            • W
              wsamael @sleve_mcdichael
              last edited by

              @sleve_mcdichael
              I don't have an error message, just that nothing happens when I click ok. and I return to the command prompt

              Are you on 4.8 ?

              S 1 Reply Last reply Reply Quote 0
              • S
                sleve_mcdichael @wsamael
                last edited by

                @wsamael yes, 4.8.8

                W 1 Reply Last reply Reply Quote 0
                • W
                  wsamael @sleve_mcdichael
                  last edited by wsamael

                  @sleve_mcdichael

                  this command works for update installed core
                  " sudo ~/RetroPie-Setup/retropie_packages.sh setup update_packages -y"

                  but this one do not work,
                  "sudo ~/RetroPie-Setup/retropie_packages.sh setup updatescript"

                  as you can see if i press ok i return to prompt command and nothing happened

                  Capture d'écran 2024-08-02 082916.png

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sleve_mcdichael @wsamael
                    last edited by

                    @wsamael said in need help to update retropie package script:

                    as you can see if i press ok i return to prompt command and nothing happened

                    Capture d'écran 2024-08-02 082916.png

                    It says the script was updated, and it was. What else would you like for to happen after that, besides command prompt?

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      wsamael @sleve_mcdichael
                      last edited by wsamael

                      @sleve_mcdichael
                      after the prompt nothing happens as if I had quit retropie.
                      ok it's up to date but if I launch through the menu it still checks, there, it doesn't do anything
                      It's not supposed to quit retropie setup.
                      and even without being up to date it does the same

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sleve_mcdichael @wsamael
                        last edited by sleve_mcdichael

                        @wsamael said in need help to update retropie package script:

                        @sleve_mcdichael
                        after the prompt nothing happens as if I had quit retropie.

                        That's how it's meant to work. The way you're doing here, retropie_packages.sh [package] [function] is used to call an individual specified function (example, the updatescript function of the setup package), and then exit.

                        It's not supposed to quit retropie setup.

                        If you want to go back to the menu after, you can run retropie_setup.sh after the updatescript function:

                        retropie_packages.sh setup updatescript
                        retropie_setup.sh
                        

                        This is equivalent to doing:

                        retropie_packages.sh setup updatescript
                        retropie_packages.sh setup gui
                        

                        ...

                        ok it's up to date but if I launch through the menu it still checks, there, it doesn't do anything

                        I'm not sure what you mean, here. What does it check?

                        When you do it through the menu, after updatescript it does runs another function post_update which in turn runs an _update_hooks function, on every package that has one. Maybe this is what you mean that it "checks"?

                        ...I am not sure, but I think you can usually skip this step, since I think this is for doing a sort of "fixup" when, for example bringing RetroPie up to date from a very old version like 3.x updating to 4.x.

                        If you want to run it anyway:

                        retropie_packages.sh setup post_update
                        

                        post_update also has a special "return function" that it can run another function after exit -- if that "return function" is gui_setup, then it goes right to the main menu. So instead of three commands for updatescript, post_update, and gui, you can do it in only two with:

                        retropie_packages.sh setup updatescript
                        retropie_packages.sh setup post_update gui_setup
                        

                        (This is what actually happens, when you choose it in the menu.)

                        ...does any of this help?

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          wsamael @sleve_mcdichael
                          last edited by

                          This post is deleted!
                          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.