Score:0

Should I apt autoremove if it will remove dkms?

us flag

I had installed the nvidia-drivers-390, but then I decided I don't need them, so I uninstalled them again. Now I was installing some other package, and apt displayed a ton of unneeded packages that could be apt autoremoved:

  dctrl-tools dkms
  libatomic1:i386 libbsd0:i386 libdrm-amdgpu1:i386
  libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386
  libedit2:i386 libelf1:i386 libexpat1:i386 libffi7:i386 libgl1:i386
  libgl1-mesa-dri:i386 libglapi-mesa:i386 libglvnd0:i386 libglx-mesa0:i386
  libglx0:i386 libllvm12:i386 libnvidia-compute-390:i386
  libnvidia-decode-390:i386 libnvidia-encode-390:i386 libnvidia-fbc1-390:i386
  libpciaccess0:i386 libsensors5:i386 libstdc++6:i386 libvulkan1:i386
  libwayland-client0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386
  libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386
  libxcb-randr0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb-xfixes0:i386
  libxcb1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxshmfence1:i386
  libxxf86vm1:i386 mesa-vulkan-drivers:i386
  screen-resolution-extra

Whyever should it want to remove dkms ? And can I safely remove the :i386 packages when I have an AMD64 processor ?

Charles Green avatar
cn flag
Generally speaking I have found autoremove to be safe - it if supposed to be removing package which were added as dependencies to something else (probably the nvidia drivers in your case). But then again, I have a robust backup, and am not shy about reinstalling everything.
Score:2
cn flag

While dkms is in the 'main' pocket of the Ubuntu repos, it's not included in a stock install of Ubuntu. It's likely that you added it as a dependency of some other package later.

You are now removing the last packages that depend upon dkms, so there is no longer any need for it. Were there any packages installed that require dkms, apt would not remove it.

If, in the future, you intall a package that depends upon dkms, apt will install it again. Alternately, if it makes you happier, you can simply tell apt to install it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.