Repository: kubernetes
Issue: Packaging - kubernetes >=1.30 - yum autoremove proposing to uninstall kubelet
Labels: kind/support,sig/release,needs-triage

Since kubernetes 1.30, I've noticed that when launching a ```yum autoremove``` (on a RHEL8 server ... certainly the same on other distributions), yum is proposing to uninstall kubelet !? (it was not the case with kubernetes <=1.29, I don't know for 1.32)

For example:

# From a RHEL8 server still running kubernetes 1.28:
```
$ sudo rpm -qa kubelet kubeadm
kubeadm-1.28.10-150500.1.1.x86_64
kubelet-1.28.10-150500.1.1.x86_64

$ sudo yum autoremove
Updating Subscription Management repositories.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo rpm -q --whatrequires kubelet
kubeadm-1.28.10-150500.1.1.x86_64
```

kubelet is a dependency of kubeadm so no uninstall proposed.

# From a RHEL8 server running kubernetes 1.31:

```
$ sudo rpm -qa kubelet kubeadm
kubeadm-1.31.4-150500.1.1.x86_64
kubelet-1.31.4-150500.1.1.x86_64

$ sudo yum autoremove
Updating Subscription Management repositories.
Dependencies resolved.
==========================================================================================================================================================================================================
 Package                                             Architecture                        Version                                        Repository                                                   Size
==========================================================================================================================================================================================================
Removing:
 conntrack-tools                                     x86_64                              1.4.4-11.el8                                   @rhel-8-for-x86_64-baseos-rpms                              576 k
 kubelet                                             x86_64                              1.31.4-150500.1.1                              @kubernetes                                                  73 M
 libnetfilter_cthelper                               x86_64                              1.0.0-15.el8                                   @rhel-8-for-x86_64-baseos-rpms                               38 k
 libnetfilter_cttimeout                              x86_64                              1.0.0-11.el8                                   @rhel-8-for-x86_64-baseos-rpms                               39 k
 libnetfilter_queue                                  x86_64                              1.0.4-3.el8                                    @rhel-8-for-x86_64-baseos-rpms                               50 k

Transaction Summary
==========================================================================================================================================================================================================
Remove  5 Packages

Freed space: 74 M
Is this ok [y/N]: n
Operation aborted.

$ sudo rpm -q --whatrequires kubelet
no package requires kubelet
```

kubelet no more dependent of kubeadm so the uninstall is proposed.

Thank you
Adrien