Re: dnf: can i "tag" installed packages so i can remove them later?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/14/18 19:11, 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 don't quite understand what you are after.

If you install a package and it pulls in a bunch of dependencies and then you remove
it the dependencies will also be removed unless you've installed additional packages
which require them.

dnf install erlang
.
.
.
Transaction Summary
===================================================================================
Install  67 Packages

Total download size: 79 M
Installed size: 208 M
Is this ok [y/N]:


dnf remove erlang
.
.
.
Transaction Summary
===================================================================================
Remove  67 Packages

Freed space: 208 M
Is this ok [y/N]:


-- 
Conjecture is just a conclusion based on incomplete information. It isn't a fact.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx/message/4MFEXUNNC2I73IKTR7FCK4SME7UFKCVW/
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux