How can we know if a service is shared between software using “dietpi-software” or “dietpi-services” ?
If by example the software A uses postgresql like also the software B, is there a way to know that in order to avoid to uninstall postegresql with software A while software B still needs it
Cheers
Charles
If you un-install the software via dietpi-software the script will care about that.
If you wanna know about the dependencies of software titles you can have a look into dietpi-software script.
Thanks.
That should be great when there is a `aSOFTWARE_DEPS[]` to show such an information
software_id=215
aSOFTWARE_NAME[$software_id]='Immich'
aSOFTWARE_DESC[$software_id]='High performance self-hosted photo and video management solution'
aSOFTWARE_CATX[$software_id]=4
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/cloud/#immich'
aSOFTWARE_DEPS[$software_id]='7 9 91 194'
within the terminal as until now we only see the following information is printed
root@DietPi:~/immich/immich-app# dietpi-software list | grep postgresql
ID 194 | =2 | PostgreSQL: Persistent advanced object-relational database server | | https://dietpi.com/docs/software/databases/#postgresql
A simple dietpi-software uninstall would only remove the specified software title itself, but not its dependencies.
For example: Nextcloud. This application consists of Nextcloud software + MariaDB + PHP + Redis + a web server.
If you select only Nextcloud during uninstallation, only the Nextcloud software would be removed. All other applications would remain.
You can use the following command to see what is installed. Additionally, you can see dependent software indicated by the +.
dietpi-software list | grep " =2 "
root@DietPiProd:~# dietpi-software list | grep " =2 "
ID 0 | =2 | OpenSSH Client: Feature-rich SSH, SFTP and SCP client |
ID 17 | =2 | Git: Clone and manage Git repositories locally |
ID 34 | =2 | PHP Composer: Package manager for PHP | +PHP | https://dietpi.com/docs/software/programming/#php-composer
ID 87 | =2 | SQLite: Persistent single-file database system | | https://dietpi.com/docs/software/databases/#sqlite
ID 89 | =2 | PHP: Hypertext Preprocessor for dynamic web content | | https://dietpi.com/docs/software/webserver_stack/#php
ID 93 | =2 | Pi-hole: block adverts for any device on your network | +Git | https://dietpi.com/docs/software/dns_servers/#pi-hole
ID 99 | =2 | Prometheus Node Exporter: Prometheus exporter for hardware and OS metrics | | https://dietpi.com/docs/software/system_stats/#prometheus_node_exporter
ID 103 | =2 | DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot | | https://dietpi.com/docs/software/log_system/#dietpi-ramlog
ID 104 | =2 | Dropbear: Lightweight SSH server | | https://dietpi.com/docs/software/ssh/#dropbear
ID 162 | =2 | Docker: Build, ship, and run distributed applications | | https://dietpi.com/docs/software/system_stats/#docker
ID 172 | =2 | WireGuard: an extremely simple yet fast and modern VPN | | https://dietpi.com/docs/software/vpn/#wireguard
Nextcloud would looks like this
ID 114 | =0 | Nextcloud: File sync, sharing and collaboration platform (PHP) | +MariaDB +PHP +Redis +webserver | https://dietpi.com/docs/software/cloud/#nextcloud
For PostgreSQL you would need be careful as it is case-sensitive
root@DietPiProd:~# dietpi-software list | grep "PostgreSQL"
ID 125 | =0 | Synapse: Matrix homeserver implementation | +Python 3 +PostgreSQL | https://dietpi.com/docs/software/social/#synapse
ID 194 | =0 | PostgreSQL: Persistent advanced object-relational database server | | https://dietpi.com/docs/software/databases/#postgresql
ID 215 | =0 | Immich: High performance self-hosted photo and video management solution | +FFmpeg +Node.js +Redis +PostgreSQL DISABLED for armv7l | https://dietpi.com/docs/software/cloud/#immich
root@DietPiProd:~#
The | =0 | indicates the software is not installed while | =2 | means installed.