On Sun, 15 Jul 2018 01:06:22 -0400
Jon LaBadie <[email protected]> wrote:

> On Sat, Jul 14, 2018 at 07:11:32AM -0400, Robert P. J. Day wrote:
> > 
> >   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.)
> >   
> 
> I see a file "/var/lib/dnf/groups.json" that seems to list
> the group names and their packages.
> 
> If that file is used by dnf, then perhaps you could
> create and manage your own group.
> 
Or maybe something like this would be of use:
"sudo dnf install docker | tee docker_project_install.log"
and maybe include the -a switch if you want to add something to the same log.

Or a virtual machine you could delete after use?
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]/message/DFIVP5OZODHSOYXENIZEB4RZCFIFHNWB/

Reply via email to