thin-edge / tedge-demo-container

thin-edge.io demo container setup to showcase thin-edge.io and all its features
4 stars 2 forks source link

Software list doesn't display all installed software of type apt #79

Closed zhong-ys closed 5 months ago

zhong-ys commented 5 months ago

The software list is only showing part of the result of 'apt list'.

Screenshot 2024-05-02 at 15 03 45

After installing a new software, it won't listed in the Installed software list, even if the installation was succeed.

Restart containers cannot solve this.

reubenmiller commented 5 months ago

@zhong-ys There is filtering activated on the apt package list.

You can see which packages are included by running the following command:

tedge config get apt.name
(tedge|c8y|python|wget|vim|curl|apt|mosquitto|ssh|sudo).*

The reason for the filtering is that without it, you get way too many uninteresting packages. Currently only an inclusive filter is supported but there is a ticket for exclusive filtering (https://github.com/thin-edge/thin-edge.io/issues/2848) ... this will make it easier to exclude libraries and kernel modules (as this makes up about 90% of the installed packages list).

So for now, you can either just remove the default apt filter, or extend it to your liking.

reubenmiller commented 5 months ago

This is where the default value is coming from (for the systemd enable container): https://github.com/thin-edge/tedge-demo-container/blob/f0ce795f501dd8cf8b7ae8c61f0dfaa31df41fa0/images/common/config/tedge.toml#L15

zhong-ys commented 5 months ago

Thank you for your detailed explanation! I will close this issue.