Repository navigation
DietPi-Software | Fix purge error on manually installed packages - #1359
Conversation
+ As AGP_ERROR_HANDLED breaks, if the package does not exist in repo, we need to use G_RUN_CMD dpkg -P instead for all packages, installed via dpkg -i. + Basically we could use dpkg -P for all purging, means inside G_AGP, as there is really no difference. APT just has the advantage of dependency handling on installation. The only downside is, that you can't use "package*" to purge all packages with this prefix together. All packages have to be fully named, no * or similar accepted, otherwise we could handle this within G_AGP script by grep/sed for "*" and add full names by using dpkg --get-selections.
|
Many thanks 👍 I just had an idea that we could exclude the APT error if package does not exist, however, APT always returns exit code of
Yep, i'am not keen on this, could effect other software titles. Personally, i'd only remove the core package via For all pre-req/libs: We should leave them installed, regardless if we manually installed them outside of APT or not. There is too much risk in removing pre-reqs, that could break other software. |
What do you think about? |
👍
Same, however, we need to ensure that DietPi never removes a shared package, that could be considered:
If your system would allow for that, i'am all for it. However, personally, i'am not keen on the long "1 liner" commands/if method 😕 |
After posting it I was thinking, that we can directly use the existing package informations and also merge the existing dependencies (webserver stack, ffmpeg etc.). But yeah, there are more urgent topics for the moment. |
https://github.com/Fourdee/DietPi/issues/1352
=> Take this PR as an offer to think about G_AGP and dependency handling for manually installed packages. Maybe medium-term we need an internal dependency handling for these?