I ran dnf autoremove, and dnf tried to remove some random packages along with kernel and kernel-devel, on their repo field it said "@System" just like any orphan package. I don't know how you can reply this, since it happens with random packages at random moments, I fixed that with: dnf clean metadata dnf makecache dnf reinstall [packages listed on dnf autoremove] and after that dnf stops trying to remove those packages.
Thanks for the report. (In reply to Duff Padmasana from comment #0) > I ran dnf autoremove, and dnf tried to remove some random packages I believe the packages which was installed as dependency not explicitly specified by `dnf install PKG` > along with kernel and kernel-devel, Trying to remove kernel packages without reaching the installonlylimit seems like duplicate of bug 1201445. The dnf > 1.0.0 unfortunately can't fix this issue for already installed packages. > on their repo field it said "@System" just > like any orphan package. DNF shows all packages installed (no matter from which repo) as @System (see bug 1234491) > I don't know how you can reply this, since it happens with random packages > at random moments, I fixed that with: > > dnf clean metadata > dnf makecache > dnf reinstall [packages listed on dnf autoremove] We have filed RFE shortcut for this (bug 1125925) Although this report contains many duplicates I am closing it as insufficient data. If you encounter this issue again, reopen and attach output of `dnf history` containing the package name which is trying to be removed in `dnf autoremove`, please.
Created attachment 1051191 [details] dnf history
$ dnf autoremove Last metadata expiration check performed 1:21:21 ago on Sun Jul 12 14:10:55 2015. Dependencias resueltas. ========================================================================================== Paquete Arquitectura Versión Repositorio Tamaño ========================================================================================== Eliminando: kernel-devel x86_64 4.0.7-300.fc22 @System 35 M kernel-modules-extra x86_64 4.0.7-300.fc22 @System 2.1 M Resumen de la transacción ========================================================================================== Eliminar 2 Packages Tamaño instalado: 37 M Está de acuerdo [s/N]:n Happening again.
Please attach output of `dnf history info kernel-devel kernel-modules-extra`.
Do you have a clean installation of f22? Can you post output of, please: # rpm -q dnf # dnf list kernel* # cat /etc/dnf/dnf.conf | grep installonly_limit # dnf install acpi --assumeno
I do. # rpm -q dnf dnf-1.0.1-2.fc22.noarch # dnf list kernel* Last metadata expiration check performed 15:27:53 ago on Sun Jul 12 21:48:57 2015. Paquetes instalados kernel.x86_64 4.0.6-300.fc22 @System kernel.x86_64 4.0.7-300.fc22 @System kernel-core.x86_64 4.0.6-300.fc22 @System kernel-core.x86_64 4.0.7-300.fc22 @System kernel-devel.x86_64 4.0.6-300.fc22 @System kernel-devel.x86_64 4.0.7-300.fc22 @System kernel-headers.x86_64 4.0.7-300.fc22 @System kernel-modules.x86_64 4.0.6-300.fc22 @System kernel-modules.x86_64 4.0.7-300.fc22 @System kernel-modules-extra.x86_64 4.0.6-300.fc22 @System kernel-modules-extra.x86_64 4.0.7-300.fc22 @System kernel-tools.x86_64 4.0.7-300.fc22 @System kernel-tools-libs.x86_64 4.0.7-300.fc22 @System Paquetes disponibles kernel-debug.x86_64 4.0.7-300.fc22 updates kernel-debug-core.x86_64 4.0.7-300.fc22 updates kernel-debug-devel.x86_64 4.0.7-300.fc22 updates kernel-debug-modules.x86_64 4.0.7-300.fc22 updates kernel-debug-modules-extra.x86_64 4.0.7-300.fc22 updates kernel-rpm-macros.noarch 28-1.fc22 updates kernel-tools-libs.i686 4.0.7-300.fc22 updates kernel-tools-libs-devel.i686 4.0.7-300.fc22 updates kernel-tools-libs-devel.x86_64 4.0.7-300.fc22 updates kernelshark.x86_64 2.2.1-5.fc22 fedora # cat /etc/dnf/dnf.conf | grep installonly_limit installonly_limit=3 # dnf install acpi --assumeno Last metadata expiration check performed 0:00:00 ago on Mon Jul 13 13:17:48 2015. Dependencias resueltas. ======================================================================================================================================================================== Paquete Arquitectura Versión Repositorio Tamaño ======================================================================================================================================================================== Instalando: acpi x86_64 1.7-3.fc22 fedora 29 k Resumen de la transacción ======================================================================================================================================================================== Instalar 1 Package Tamaño total de la descarga: 29 k Tamaño instalado: 43 k Operación abortada.
Created attachment 1051490 [details] dnf history info kernel-devel kernel-modules-extra
A couple of minutes ago, I reinstalled kernel-devel-4.0.7-300 and it disappeared from "dnf autoremove" print.
Updated to kernel 4.1.2, I haven't kernel-4.0.8-300. [root@infinity duff]# dnf autoremove Last metadata expiration check performed 0:16:16 ago on Tue Jul 28 23:10:35 2015. Dependencias resueltas. ========================================================================================== Paquete Arquitectura Versión Repositorio Tamaño ========================================================================================== Eliminando: kernel-devel x86_64 4.1.2-200.fc22 @System 36 M kernel-modules-extra x86_64 4.1.2-200.fc22 @System 2.1 M Resumen de la transacción ========================================================================================== Eliminar 2 Packages Tamaño instalado: 38 M Está de acuerdo [s/N]:n Operación abortada. This is dnf autoremove output, I get this with both kernels.
I haven't removed kernel-4.0.8-300*
Happening again after upgrade kernel. [root@infinity duff]# dnf list extras Last metadata expiration check performed 9:40:56 ago on Fri Aug 28 02:54:01 2015. Paquetes extra kernel.x86_64 4.1.5-200.fc22 @System kernel-core.x86_64 4.1.5-200.fc22 @System kernel-devel.x86_64 4.1.5-200.fc22 @System kernel-modules.x86_64 4.1.5-200.fc22 @System kernel-modules-extra.x86_64 4.1.5-200.fc22 @System [root@infinity duff]# dnf autoremove Last metadata expiration check performed 9:41:12 ago on Fri Aug 28 02:54:01 2015. Dependencias resueltas. ========================================================================================== Paquete Arquitectura Versión Repositorio Tamaño ========================================================================================== Eliminando: kernel-devel x86_64 4.1.6-200.fc22 @System 36 M kernel-modules-extra x86_64 4.1.6-200.fc22 @System 2.1 M Resumen de la transacción ========================================================================================== Eliminar 2 Packages
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Just upgraded to Fedora 26. It still doesn't remove extra packages.
Please can you provide additional data? We need provide a reproducer, or examples where you think that dnf should remove something. Otherwise we have to close it as insufficient data. To get list of user installed packages please use ``dnf repoquery --userinstalled``. List of packages that requires the package: ``dnf repoquery --whatrequires <pkg>`` What is not removed by autoremove: 1. installonly packages bellow limit 2. packages that are required by any other package 3. User installed packages 4. Group installed packages 5. Packages with unknown reason (installed by yum, rpm)
Hi, in fedora post-upgrade optional tasks, it is listed to run > dnf list --extras These are packages now not found in any repo - old cruft. So I thought, there should be a command to get rid of them in once, instead of me copy/pasting like crazy to console. But thinking more about it, that command also lists packages that have updates already. So what we in fact need is a command that only lists packages not found in any current repo and without updates + a command to delete such packages. Probably the `autoremove` should not do this by default. I think it only makes sense to do it when a special command option is specified by the user. To recap, as far as I'm concerned, I'd like to have a command that lists and is able to delete any packages ligering on the system disconnected from any currently configured repo. Why: 1. to avoid the manual work after upgrade 2. clean-up when some third party repo is removed
And what about: ``dnf remove $(dnf repoquery --extras) --exclude=<something,pkgs...>`` It will be nice to have a fully upgraded system to reduce a number of excludes.
The above might be a workaround (I didn't know it can work like this) and can be documented in the `dnf system-upgrade` page. I think something more polished would be better.
Ok, I will create an example for remove command with repoquery part, but that is all what I can do for you. Your request is so specific but I am sure that there is bunch of users that want to do something similar but not exactly what you want to do. I always prefer to use general solution rather than produce a new option (we already have to many options). Hope that you understand that.
I created a pull-request that provides examples (https://github.com/rpm-software-management/dnf/pull/872). For you would be better: ``dnf remove $(dnf repoquery --extras --exclude=<something,pkgs...>)``
Looks good to me. Thank you!
dnf-plugins-extras-2.0.3-1.fc27 dnf-plugins-core-2.1.4-1.fc27 dnf-2.7.2-1.fc27 libdnf-0.10.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-plugins-extras-2.0.3-1.fc26 dnf-plugins-core-2.1.4-1.fc26 dnf-2.7.2-1.fc26 libdnf-0.10.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.