Il 14/07/2018 13:11, Robert P. J. Day ha scritto:
scanned the dnf man page, did not see an immediate solution so i'll
ask here:
is there any way to dynamically tag or label packages during dnf
install so i can remove them all later by that tag or label? on more
than one occasion, i've had to install dozens (or hundreds) of
packages, *knowing* that i would need them only for a while, at which
time it would be nice to be able to remove them all via that tag or
label.
i guess i'm after something i would think of as a "dynamic group",
where i could run, say:
$ sudo dnf install --tag="my_project" docker
$ sudo dnf install --tag="my_project" erlang
and possibly other totally unrelated packages, then toss them all
later with:
$ sudo dnf remove --tag="new_project"
is there anything like this? (and, yes, i can appreciate the
possibility for conflicts when an initially "tagged" package would
later be installed explicitly, and so on.)
rday
Have you considered simply creating an empty RPM called, say,
myproject1.rpm, which references the RPMs you need? When done simply
uninstall it.