kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

Feature request - list of explicitly installed packages (for better orphan handling) #262

Closed LostGhost1 closed 3 years ago

LostGhost1 commented 3 years ago

I feel like what's currently present in contrib/kiss-orphans, a hardcoded list of packages that are supposed to be there, won't do.

The list could be a text file /var/db/kiss/installed-explicit and it could contain names of packages line-by-line.

Arguments to "kiss build" would be attached to the list upon successful compilation, if not already present Arguments to "kiss remove" would be removed from the list upon removal.

Seems simple enough, although I probably missed a few corner cases.

What do you think, dylan?

dylanaraps commented 3 years ago

See my thoughts on this here: https://github.com/kisslinux/kiss/pull/169#issuecomment-653083828

Thanks for opening this issue.

PS You can implement this yourself via KISS_HOOK or even a simple wrapper around the package manager.

jedahan commented 3 years ago

Another 'solution' is to create a package whose deps are all the packages you want for your system. See https://github.com/jedahan/repo-talyn/blob/main/talyn/depends .

FriendlyNeighborhoodShane commented 3 years ago

The final result of the prototype in that mentioned PR is here: https://gist.github.com/FriendlyNeighborhoodShane/41593680b39c0c04cd82b5497ca25a26

It's not the solution to your exact request, but it serves all of my package maintainance needs.