need help to update retropie package script
-
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 ;) -
@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
-
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 ;) -
@wsamael the command work on my system, just now. What error message you get, when you try?
-
@sleve_mcdichael
I don't have an error message, just that nothing happens when I click ok. and I return to the command promptAre you on 4.8 ?
-
@wsamael yes, 4.8.8
-
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
-
@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
It says the script was updated, and it was. What else would you like for to happen after that, besides command prompt?
-
@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 -
@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, theupdatescript
function of thesetup
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 theupdatescript
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 functionpost_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" isgui_setup
, then it goes right to the main menu. So instead of three commands forupdatescript
,post_update
, andgui
, 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?
-
This post is deleted!
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.