DNF as default package manager

Vít Ondruch vondruch at redhat.com
Fri Jan 23 08:18:40 UTC 2015


Dne 22.1.2015 v 15:30 Jan Zelený napsal(a):
> On 22. 1. 2015 at 15:06:34, Michael Schwendt wrote:
>> On Wed, 21 Jan 2015 09:33:31 +0100, Vít Ondruch wrote:
>>> Dne 20.1.2015 v 14:22 Bohuslav Kabrda napsal(a):
>>>> 1) DNF will be the default package manager for F22 [2], so everything is
>>>> ok here.> 
>>> I really wonder what is the state here. This is on my rawhide:
>>>
>>> # dnf remove yum
>>>
>>>  python3-chardet                 noarch 2.2.1-2.fc22              @System
>>>  1.1 M python3-requests                noarch 2.5.0-3.fc22             
>>>  @System 318 k python3-urllib3                 noarch 1.10-1.fc22        
>>>        @System 341 k
>> Is "dnf remove ..." any special and also removes requirements in addition to
>> "yum"?
>>
>> python3-chardet certainly does not depend on "yum" in any way.
>> Same for the other Python 3 based packages in your list. I can only
>> imagine they are on the list because they are dependencies by something
>> else on that list. Not "yum" which is Python 2 based anyway.
> I cannot be 100% sure but I think what you see is dnf performing autoremove 
> automatically. Basically every transaction you perform will also clean orphan 
> packages if there are any. This can be turned off in dnf.conf (the directive is 
> called clean_requirements_on_remove).
>
> Thanks
> Jan

You were right, this is without the cleanup:

$ LANG=en_US sudo dnf remove yum --setopt=clean_requirements_on_remove=0
--disablerepo=\*
Dependencies resolved.
================================================================================
 Package                           Arch     Version             Repository
                                                                          
Size
================================================================================
Removing:
 abrt                              x86_64   2.3.0-5.fc22       
@System   1.9 M
 abrt-addon-ccpp                   x86_64   2.3.0-5.fc22       
@System   275 k
 abrt-addon-kerneloops             x86_64   2.3.0-5.fc22       
@System    74 k
 abrt-addon-pstoreoops             x86_64   2.3.0-5.fc22       
@System    14 k
 abrt-addon-python                 x86_64   2.3.0-5.fc22       
@System    19 k
 abrt-addon-python3                x86_64   2.3.0-5.fc22       
@System    14 k
 abrt-addon-vmcore                 x86_64   2.3.0-5.fc22       
@System    40 k
 abrt-addon-xorg                   x86_64   2.3.0-5.fc22       
@System    17 k
 abrt-cli                          x86_64   2.3.0-5.fc22       
@System     0
 abrt-dbus                         x86_64   2.3.0-5.fc22       
@System   120 k
 abrt-desktop                      x86_64   2.3.0-5.fc22       
@System     0
 abrt-gui                          x86_64   2.3.0-5.fc22       
@System   240 k
 abrt-gui-libs                     x86_64   2.3.0-5.fc22       
@System    19 k
 abrt-java-connector               x86_64   1.1.0-3.fc22       
@System    79 k
 abrt-libs                         x86_64   2.3.0-5.fc22       
@System    51 k
 abrt-plugin-bodhi                 x86_64   2.3.0-5.fc22       
@System    20 k
 abrt-python                       x86_64   2.3.0-5.fc22       
@System    57 k
 abrt-python3                      x86_64   2.3.0-5.fc22       
@System    53 k
 abrt-retrace-client               x86_64   2.3.0-5.fc22       
@System   105 k
 abrt-tui                          x86_64   2.3.0-5.fc22       
@System    24 k
 bodhi-client                      noarch   0.9.12.2-1.fc22    
@System    26 k
 fedora-packager                   noarch   0.5.10.5-1.fc22    
@System    80 k
 fedpkg                            noarch   1.19-2.fc22        
@System    70 k
 gnome-abrt                        x86_64   1.0.0-1.fc22       
@System   769 k
 libreport                         x86_64   2.3.0-8.fc22       
@System   1.8 M
 libreport-cli                     x86_64   2.3.0-8.fc22       
@System    29 k
 libreport-fedora                  x86_64   2.3.0-8.fc22       
@System    40 k
 libreport-gtk                     x86_64   2.3.0-8.fc22       
@System   219 k
 libreport-plugin-bugzilla         x86_64   2.3.0-8.fc22       
@System   147 k
 libreport-plugin-kerneloops       x86_64   2.3.0-8.fc22       
@System    37 k
 libreport-plugin-logger           x86_64   2.3.0-8.fc22       
@System    35 k
 libreport-plugin-reportuploader   x86_64   2.3.0-8.fc22       
@System    71 k
 libreport-plugin-ureport          x86_64   2.3.0-8.fc22       
@System    55 k
 libreport-python                  x86_64   2.3.0-8.fc22       
@System    94 k
 libreport-python3                 x86_64   2.3.0-8.fc22       
@System    41 k
 libreport-web                     x86_64   2.3.0-8.fc22       
@System    44 k
 mock                              noarch   1.2.3-1.fc22       
@System   816 k
 pyrpkg                            noarch   1.28-1.fc22        
@System   369 k
 setroubleshoot                    x86_64   3.2.20-3.fc22      
@System   231 k
 yum                               noarch   3.4.3-155.fc22     
@System   5.6 M
 yum-langpacks                     noarch   0.4.4-1.fc22       
@System    66 k
 yum-utils                         noarch   1.1.31-27.fc22     
@System   324 k

Transaction Summary
================================================================================
Remove  42 Packages

Installed size: 14 M
Is this ok [y/N]:


Looks much better, but what about the setroubleshoot?


Vít


More information about the devel mailing list