Stop apt-get autoremove from removing old kernel?

dbz2k

I like managing kernels my self, and I can't figure how to stop apt-get autoremove from deleting older kernels.

Stormlord

apt-get autoremove, removes files that have been installed automatically and are no longer needed. If you want autoremove not to remove some of them, you can mark them as installed manually. In your case: sudo apt-mark manual package_name.

If you have installed a mainline kernel, you need to mark 3 packages:
linux-headers-version
linux-headers-version-generic
linux-image-version-generic

If you are using the official kernel, you need to mark one more package:
linux-image-extra-version-generic.

The only thing you have to do is find the correct version and replace the word in the package name. Of course all three or four versions have to be the same.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why does apt autoremove not remove all old kernel packages at once?

From Dev

apt-get autoremove "Before uninstall, this module version was ACTIVE on this kernel"

From Dev

Apt autoremove failed to fully uninstall old kernels, now they block apt-get

From Dev

How to exclude a package from apt-get autoremove?

From Dev

`sudo apt autoremove` suggests removing large package

From Dev

apt-get autoremove dangerous?

From Dev

apt-get autoremove dangerous?

From Dev

Why doesn't apt-get autoremove remove my old kernels?

From Dev

17.10 apt-get upgrade hangs on removing kernel

From Dev

apt-get autoremove removes everything

From Dev

apt-get - autoremove wants to uninstall Gnome

From Dev

apt-get autoremove removes everything

From Dev

apt-get wants to autoremove core packages

From Dev

Using apt-get autoremove with Missing Dependencies

From Dev

will apt-get autoremove break other dependencies?

From Dev

How to prevent apt-get install from removing package holds?

From Dev

How to prevent apt-get install from removing package holds?

From Dev

Is it safe to use the command apt-get autoremove in this particular scenario?

From Dev

Is it safe to use the command apt-get autoremove in this particular scenario?

From Dev

Package installed as dependency is not removed with "apt-get autoremove"

From Dev

Why did 'apt-get autoremove' not work properly?

From Dev

After apt-get autoremove my desktop style has changed

From Dev

Apt-get autoremove after I almost broke Ubuntu

From Dev

apt-get unable to autoremove packages filling up Inodes

From Dev

Does apt-get autoremove remove intel graphics drivers?

From Dev

Debian 9.1: apt-get autoremove will not remove dependencies

From Dev

apt-get autoremove does not see dependencies of a removed package?

From Dev

Error when running "sudo apt-get autoremove"

From Dev

How dangerous is `sudo apt-get autoremove package*`?

Related Related

  1. 1

    Why does apt autoremove not remove all old kernel packages at once?

  2. 2

    apt-get autoremove "Before uninstall, this module version was ACTIVE on this kernel"

  3. 3

    Apt autoremove failed to fully uninstall old kernels, now they block apt-get

  4. 4

    How to exclude a package from apt-get autoremove?

  5. 5

    `sudo apt autoremove` suggests removing large package

  6. 6

    apt-get autoremove dangerous?

  7. 7

    apt-get autoremove dangerous?

  8. 8

    Why doesn't apt-get autoremove remove my old kernels?

  9. 9

    17.10 apt-get upgrade hangs on removing kernel

  10. 10

    apt-get autoremove removes everything

  11. 11

    apt-get - autoremove wants to uninstall Gnome

  12. 12

    apt-get autoremove removes everything

  13. 13

    apt-get wants to autoremove core packages

  14. 14

    Using apt-get autoremove with Missing Dependencies

  15. 15

    will apt-get autoremove break other dependencies?

  16. 16

    How to prevent apt-get install from removing package holds?

  17. 17

    How to prevent apt-get install from removing package holds?

  18. 18

    Is it safe to use the command apt-get autoremove in this particular scenario?

  19. 19

    Is it safe to use the command apt-get autoremove in this particular scenario?

  20. 20

    Package installed as dependency is not removed with "apt-get autoremove"

  21. 21

    Why did 'apt-get autoremove' not work properly?

  22. 22

    After apt-get autoremove my desktop style has changed

  23. 23

    Apt-get autoremove after I almost broke Ubuntu

  24. 24

    apt-get unable to autoremove packages filling up Inodes

  25. 25

    Does apt-get autoremove remove intel graphics drivers?

  26. 26

    Debian 9.1: apt-get autoremove will not remove dependencies

  27. 27

    apt-get autoremove does not see dependencies of a removed package?

  28. 28

    Error when running "sudo apt-get autoremove"

  29. 29

    How dangerous is `sudo apt-get autoremove package*`?

HotTag

Archive