Kernels galore and no NVIDIA driver in sight
Little Girl
littlergirl at gmail.com
Tue Dec 24 17:38:13 UTC 2024
Hey there,
Keith via ubuntu-users wrote:
>Little Girl wrote:
>> sudo apt update && sudo apt autoremove && sudo apt clean && sudo
>> apt purge
>
>Not really necessary to run update at this point since you've
>already performed an upgrade action in the first step. And if you
>change autoremove to either "autoremove --purge" or just
>"autopurge", you won't need to run "apt purge" by itself.
Okay, that sounds good.
>In fact purge by itself doesn't do anything without something to act
>on.
That explains why I thought I was doing cleanup, but wasn't.
>If you wanted you could combine upgrade and autoremove into one
>command $ sudo apt full-upgrade --autoremove --purge *
>*autopurge isn't accepted as a valid option with the upgrade action
>so you have to also include "--purge" unless you add the apt config
>option listed at the bottom of the page.
I'd rather not, since there's sometimes a reboot involved in a
full-upgrade and I'd like to get that in before the purge.
>Yes, the nvidia-dkms-535 package, which is a dependency of the
>nvidia-driver-535 package, will automatically build a new nvidia
>kernel module whenever the kernel and kernel-headers packages are
>upgraded.
That's such a relief.
>> I'll be curious how much space this buys me, too.
>
>I wouldn't think alot since most config files are typically small in
>size.
Ah, well. Any little bit helps.
>I would go ahead run "sudo apt purge ~c" first to get rid of
>residual config files that are on the system now.
I plan to. I haven't run it yet and figured I'd check with you on
these files that will also be removed by that command and don't seem
to have anything to do with NVIDIA. There's no harm in losing these?
Purg libasound2-plugins:i386
Purg libglib2.0-0:i386
Purg libkf5akonadicontact-data
Purg libkf5calendarcore5abi2
Purg libkf5grantleetheme5
Purg libpulse0:i386
Purg steam:i386
>It shouldn't be necessary to run it after this one time if you start
>using "autoremove --purge"
Good to know and I plan on it.
>$ sudo apt update && sudo apt full-upgrade --autoremove --purge
Using that as a jumping-off point, since I want to keep the potential
reboot in there, this is what I currently have that I plan on running
regularly after the initial "sudo apt purge ~c" command that will
be run once first after hearing back from you on the questionable
files above:
1. Fetch updates: sudo apt update && sudo apt full-upgrade && snap refresh
2. Reboot if prompted.
3. Tidy up: sudo apt autoremove --purge && sudo apt clean
Does that seem like a solid future routine?
--
Little Girl
There is no spoon.
More information about the ubuntu-users
mailing list