X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/23c5897cbdb5a957788201a5178e963586dcdbc9..3b5607fc31371190470074371793cb8500b5139e:/debian/apt.conf.autoremove

diff --git a/debian/apt.conf.autoremove b/debian/apt.conf.autoremove
index 2f00b9f8b..fc02350ae 100644
--- a/debian/apt.conf.autoremove
+++ b/debian/apt.conf.autoremove
@@ -1,23 +1,40 @@
 APT
 {
-  NeverAutoRemove  
+  NeverAutoRemove
   {
-        "^linux-firmware$";
-	"^linux-image.*";  
-	"^linux-restricted-modules.*";
-	"^linux-ubuntu-modules-.*";
+	"^firmware-linux.*";
+	"^linux-firmware$";
+  };
+
+  VersionedKernelPackages
+  {
+	# linux kernels
+	"linux-image";
+	"linux-headers";
+	"linux-image-extra";
+	"linux-signed-image";
+	# kfreebsd kernels
+	"kfreebsd-image";
+	"kfreebsd-headers";
+	# hurd kernels
+	"gnumach-image";
+	# (out-of-tree) modules
+	".*-modules";
+	".*-kernel";
+	"linux-backports-modules-.*";
+        # tools
+        "linux-tools";
   };
 
   Never-MarkAuto-Sections
   {
 	"metapackages";
-        "restricted/metapackages";
-        "universe/metapackages";
-        "multiverse/metapackages";
+	"restricted/metapackages";
+	"universe/metapackages";
+	"multiverse/metapackages";
 	"oldlibs";
-        "restricted/oldlibs";
-        "universe/oldlibs";
-        "multiverse/oldlibs";
-
+	"restricted/oldlibs";
+	"universe/oldlibs";
+	"multiverse/oldlibs";
   };
 };