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).
Anyone have a good workflow they use to remove unneeded packages?
Thanks, Richard
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.
poc
On Fri, 15 Nov 2019 at 16:40, Richard Shaw hobbes1069@gmail.com 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).
Anyone have a good workflow they use to remove unneeded packages?
When running dnf upgrade I make sure to check the list of packages being
updated, and remove anything I spot that i don't need. Eventually it starts carving it down. You could also list the installed packages, and start removing things you don't need.
It's all manual hacky work afaik. :)
On Fri, Nov 15, 2019 at 11:31 AM Patrick O'Callaghan pocallaghan@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
On Fri, 15 Nov 2019 15:00:44 -0600 Richard Shaw hobbes1069@gmail.com wrote:
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...
You could look for old packages.
dnf list installed | grep fc2[0-9]
There should be quite a few after that many upgrades.
On Fri, 2019-11-15 at 19:10 -0700, stan via users wrote:
On Fri, 15 Nov 2019 15:00:44 -0600 Richard Shaw hobbes1069@gmail.com wrote:
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...
You could look for old packages.
dnf list installed | grep fc2[0-9]
There should be quite a few after that many upgrades.
However not all of them are outdated. Some packages retain an older release number because they haven't changed.
poc
On 11/16/19 3:56 AM, Patrick O'Callaghan wrote:
On Fri, 2019-11-15 at 19:10 -0700, stan via users wrote:
On Fri, 15 Nov 2019 15:00:44 -0600 Richard Shaw hobbes1069@gmail.com wrote:
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...
You could look for old packages.
dnf list installed | grep fc2[0-9]
There should be quite a few after that many upgrades.
However not all of them are outdated. Some packages retain an older release number because they haven't changed.
But if it's more than one release old, then that means it's currently failing to build. The mass rebuild should bump the release number on all packages. Those should all disappear soon though since the FTBFS packages are getting retired.
On Sat, 2019-11-16 at 16:40 -0800, Samuel Sieb wrote:
On 11/16/19 3:56 AM, Patrick O'Callaghan wrote:
On Fri, 2019-11-15 at 19:10 -0700, stan via users wrote:
On Fri, 15 Nov 2019 15:00:44 -0600 Richard Shaw hobbes1069@gmail.com wrote:
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...
You could look for old packages.
dnf list installed | grep fc2[0-9]
There should be quite a few after that many upgrades.
However not all of them are outdated. Some packages retain an older release number because they haven't changed.
But if it's more than one release old, then that means it's currently failing to build. The mass rebuild should bump the release number on all packages. Those should all disappear soon though since the FTBFS packages are getting retired.
OK
poc