Install DietPi optimized software prior to the auto-setup script

Hi folks, new to dietpi and interested to know of a few suggestions for the use-case below.

I would like to install dietpi optimized software (let’s use git as an example) prior to the AUTO_SETUP_CUSTOM_SCRIPT_EXEC.

(I realize I could install git using apt-get in the script itself, but I would really like to use the optimized software packages from dietpi.)

I have tried two approaches so far,

  1. Add the dietpi scripts directory into PATH and then run dietpi-software install 17 within the AUTO_SETUP_CUSTOM_SCRIPT_EXEC itself → fails because of the boot process
  2. Add AUTO_SETUP_INSTALL_SOFTWARE_ID=17 within dietpi.txt → the AUTO_SETUP_CUSTOM_SCRIPT_EXEC fails because git is not a recognized command, presumably because the software is installed after.

Has anyone found a solution to install optimized dietpi-software prior to the AUTO_SETUP_CUSTOM_SCRIPT_EXEC?

Thanks!

simply add apt-get install git to your script. It’s exactly same version of git as we install using dietpi-software. There is zero difference.

Thanks, @Joulinar for getting back! I also would like to install,

(5) alsa,
(7) ffmpeg,
(37) shairport-sync,
(130) Python3

Are there any advantages to using the optimized software versions of these other packages?

Basically you are free to install whatever you like manually.

Our advanced installation is not strictly related to the software version. More we offer an end-to-end experience to have software title ready to use for end user ootb. Like to configure ports, setup configuration and connections.

Of course on git it doesn’t make really sense. However we use git for other software title like PiHole. Therefore it’s in the list.

But on other software title it’s quite an advantage. like nextcloud. You don’t need to configure database, webserver and PHP.

If you like, you could have a look to the install script. There you see what we do.

Got it, super clear (link to where git is installed within the dietpi-software script you referenced for those following along reference).

Yeah, I figured I can do whatever I want, I think I was reading into the “optimized software” language a bit too much (here). Your suggestion makes perfect sense, check the script to understand the advantages of installing via dietpi-software.

Don’t get me wrong, the streamlined installation / configuration is still super helpful.

Appreciate the responses @Joulinar!

Our main focus is on unexperienced users to make the user experience on Linux easier. We also try to configure many applications so that they can run on the side without major user intervention.

For power users or experienced admins there are no obstacles to configure everything the way they want.

Our software installation script is an offer but not an obligation.

We are always open to suggestions for improvements should something not work as expected.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.