bash script to install apps, and have it show in Software

I'm making a bash script to install some preset apps to many computers, rather than manually searching for and installing each one.

I've been looking online, but every method to install apps from the terminal doesn't seem to show it installed in Software.

Is there a command to install it as if it was installed from Software?

For reference I'm on Zorin OS 16. Using prusa-slicer as an example, neither flatpak install prusa nor apt-get install prusa-slicer show up in Software. What other option am I missing?

Posted Jul 14, 2022, 1:57 AM UTC

315
General-Stryker•

Try running it from command line with a --register-app flag at the end

2
GoogelplexOP•

For apt or flatpak? apt gives E: Command line option --register-app is not understood in combination with the other options from apt-get install prusa-slicer --register-app, and flatpak gives error: Unknown option --register-app from flatpak install prusa --register-app.

1
General-Stryker•

Ah... I thought it was a universal thing whoops.

Whenever I've installed software with apt, it always shows up. Granted, I use Pop_OS which has a great launcher, so perhaps that has something to do with it

1
GoogelplexOP•

Hmm, I don't suppose there's a way to have the Software app install it, rather than installing it another way and forcing it to show?

1
General-Stryker•

Synaptic is just a front-end for apt, so... idk. If there's a Zorin forum or subreddit, they'd probably know since it's related to their own launcher/DE

2
undeadalex•

What do you mean by software? Is that like the graphical package installer for that distro?

If it's not 'showing up' somewhere like a launcher, if that's what you mean by software, then you probably need to manually update the launcher.

Also could be this?

https://askubuntu.com/questions/1230644/software-center-not-showing-installed-apps

I think zorins up stream is Ubuntu right?

Could try this:

https://ubuntu-mate.community/t/software-center-not-showing-installed-apps/24998

Good luck. More info can help us offer more help.

1
GoogelplexOP•

Yes, That's what I mean by Software. This isn't a bug with the app though, it's that I don't know how to get apps installed from the terminal to show.

2
undeadalex•

Ok, I presented two options, so yes to which one?

​

And if its not showing in the 'software' and its supposed to, then it is a bug.

​

Lets start over.

​

What do you mean by 'Software'?

and what command/package manager did you use to install the apps (packages)? This will help clarify the issue.

1
GoogelplexOP•

By Software I mean the app that comes with Zorin used to graphically install applications.

I didn't call it a bug because I assumed that apps installed from the terminal aren't meant to automatically show up as installed in the Software app. If they are supposed to be showing up like that, then it is a bug.

Whatever the case, I'm looking for a command that works. I've tried apt and flatpak, but I'm open to any package manager that accomplishes my goal.

1
undeadalex•

Ok cool. Ok, so how are you Installing? Are you using apt? Or flatpak?

1