On Fri, Nov 15, 2019 at 11:31 AM Patrick O'Callaghan <pocallag...@gmail.com>
wrote:

> On Fri, 2019-11-15 at 10:39 -0600, Richard Shaw wrote:
> > Working on downloading all the packages to update to Fedora 31 and
> noticed
> > that I have 4877 packages (and 6GB) to update (excluding a handful of new
> > weak dependencies).
>
> Sounds about right.
>
> > Anyone have a good workflow they use to remove unneeded packages?
>
> Define "unneeded". You might have something you only use once a month,
> or once every six months. Only you can know. In my own case I sometimes
> install something to try it, and if it doesn't interest me I remove it
> immediately, but of course over time some things slip through the
> cracks until I notice them.
>

Well, I don't just mean end user packages. I haven't done a fresh install
since at least Fedora 24 and before DNF leaf packages were not
automatically removed...

I almost asked this question on the devel list since a lot of the packages
are -devel ones. I used to build things using plain rpmbuild all the time
but for the most part I just use mock. Also, I'd like to use toolbox to
create dedicated development environments for particular packages
(especially ones with long/difficult package dependency chains) but I can't
seem to get it to work (another story) under my build user. I don't do
packaging work under my main account.

Back to the topic at hand...

# dnf repoquery --unneeded produces some interesting results...

Some of them I want to keep so I'm doing "dnf mark installed <package>" to
get them off the list.

Now

# dnf repoquery --unneeded | xargs dnf -y erase

55 packages down...

# rpm -qa | grep devel | xargs dnf mark remove
# dnf autoremove

365 packages down...

# rpm -qa | wc -l
4645

Ok, I think that's enough for today...

Thanks,
Richard
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to