dnf centos 7 , ansible dnf
[root@localhost ~]# yum install dnf
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: python2-dnf = 4.0.9.2-1.el7_6 for package: dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package python2-dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: dnf-data = 4.0.9.2-1.el7_6 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libcomps >= 0.1.8 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-hawkey >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: libmodulemd >= 1.4.0 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package dnf-data.noarch 0:4.0.9.2-1.el7_6 will be installed
---> Package libmodulemd.x86_64 0:1.6.3-1.el7 will be installed
---> Package python2-hawkey.x86_64 0:0.22.5-1.el7_6 will be installed
--> Processing Dependency: libdnf(x86-64) = 0.22.5-1.el7_6 for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsmartcols.so.1()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: librepo.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libdnf.so.2()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
---> Package python2-libcomps.x86_64 0:0.1.8-12.el7 will be installed
--> Processing Dependency: libcomps(x86-64) = 0.1.8-12.el7 for package: python2-libcomps-0.1.8-12.el7.x86_64
--> Processing Dependency: libcomps.so.0.1.6()(64bit) for package: python2-libcomps-0.1.8-12.el7.x86_64
---> Package python2-libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
--> Running transaction check
---> Package libcomps.x86_64 0:0.1.8-12.el7 will be installed
---> Package libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
---> Package librepo.x86_64 0:1.8.1-7.el7 will be installed
---> Package libsmartcols.x86_64 0:2.23.2-59.el7_6.1 will be installed
---> Package libsolv.x86_64 0:0.6.34-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
dnf noarch 4.0.9.2-1.el7_6 extras 357 k
Installing for dependencies:
dnf-data noarch 4.0.9.2-1.el7_6 extras 51 k
libcomps x86_64 0.1.8-12.el7 extras 75 k
libdnf x86_64 0.22.5-1.el7_6 extras 533 k
libmodulemd x86_64 1.6.3-1.el7 extras 141 k
librepo x86_64 1.8.1-7.el7 base 81 k
libsmartcols x86_64 2.23.2-59.el7_6.1 updates 140 k
libsolv x86_64 0.6.34-2.el7 base 328 k
python2-dnf noarch 4.0.9.2-1.el7_6 extras 414 k
python2-hawkey x86_64 0.22.5-1.el7_6 extras 68 k
python2-libcomps x86_64 0.1.8-12.el7 extras 47 k
python2-libdnf x86_64 0.22.5-1.el7_6 extras 608 k
Transaction Summary
=======================================================================================
Install 1 Package (+11 Dependent packages)
Total size: 2.8 M
Total download size: 2.6 M
Installed size: 10 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): libcomps-0.1.8-12.el7.x86_64.rpm | 75 kB 00:00:00
(2/11): dnf-data-4.0.9.2-1.el7_6.noarch.rpm | 51 kB 00:00:00
(3/11): dnf-4.0.9.2-1.el7_6.noarch.rpm | 357 kB 00:00:00
(4/11): python2-dnf-4.0.9.2-1.el7_6.noarch.rpm | 414 kB 00:00:00
(5/11): librepo-1.8.1-7.el7.x86_64.rpm | 81 kB 00:00:00
(6/11): libmodulemd-1.6.3-1.el7.x86_64.rpm | 141 kB 00:00:00
(7/11): libsolv-0.6.34-2.el7.x86_64.rpm | 328 kB 00:00:00
(8/11): python2-hawkey-0.22.5-1.el7_6.x86_64.rpm | 68 kB 00:00:00
(9/11): libdnf-0.22.5-1.el7_6.x86_64.rpm | 533 kB 00:00:01
(10/11): python2-libdnf-0.22.5-1.el7_6.x86_64.rpm | 608 kB 00:00:00
(11/11): python2-libcomps-0.1.8-12.el7.x86_64.rpm | 47 kB 00:00:00
---------------------------------------------------------------------------------------
Total 1.4 MB/s | 2.6 MB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libmodulemd-1.6.3-1.el7.x86_64 1/12
Installing : librepo-1.8.1-7.el7.x86_64 2/12
Installing : libsolv-0.6.34-2.el7.x86_64 3/12
Installing : libsmartcols-2.23.2-59.el7_6.1.x86_64 4/12
Installing : libdnf-0.22.5-1.el7_6.x86_64 5/12
Installing : python2-libdnf-0.22.5-1.el7_6.x86_64 6/12
Installing : python2-hawkey-0.22.5-1.el7_6.x86_64 7/12
Installing : libcomps-0.1.8-12.el7.x86_64 8/12
Installing : python2-libcomps-0.1.8-12.el7.x86_64 9/12
Installing : dnf-data-4.0.9.2-1.el7_6.noarch 10/12
Installing : python2-dnf-4.0.9.2-1.el7_6.noarch 11/12
Installing : dnf-4.0.9.2-1.el7_6.noarch 12/12
Verifying : python2-libdnf-0.22.5-1.el7_6.x86_64 1/12
Verifying : python2-libcomps-0.1.8-12.el7.x86_64 2/12
Verifying : dnf-data-4.0.9.2-1.el7_6.noarch 3/12
Verifying : libdnf-0.22.5-1.el7_6.x86_64 4/12
Verifying : libmodulemd-1.6.3-1.el7.x86_64 5/12
Verifying : python2-hawkey-0.22.5-1.el7_6.x86_64 6/12
Verifying : python2-dnf-4.0.9.2-1.el7_6.noarch 7/12
Verifying : libsmartcols-2.23.2-59.el7_6.1.x86_64 8/12
Verifying : libsolv-0.6.34-2.el7.x86_64 9/12
Verifying : librepo-1.8.1-7.el7.x86_64 10/12
Verifying : libcomps-0.1.8-12.el7.x86_64 11/12
Verifying : dnf-4.0.9.2-1.el7_6.noarch 12/12
Installed:
dnf.noarch 0:4.0.9.2-1.el7_6
Dependency Installed:
dnf-data.noarch 0:4.0.9.2-1.el7_6 libcomps.x86_64 0:0.1.8-12.el7
libdnf.x86_64 0:0.22.5-1.el7_6 libmodulemd.x86_64 0:1.6.3-1.el7
librepo.x86_64 0:1.8.1-7.el7 libsmartcols.x86_64 0:2.23.2-59.el7_6.1
libsolv.x86_64 0:0.6.34-2.el7 python2-dnf.noarch 0:4.0.9.2-1.el7_6
python2-hawkey.x86_64 0:0.22.5-1.el7_6 python2-libcomps.x86_64 0:0.1.8-12.el7
python2-libdnf.x86_64 0:0.22.5-1.el7_6
Complete!
[root@localhost ~]# yum install dnf*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Package dnf-4.0.9.2-1.el7_6.noarch already installed and latest version
Package dnf-data-4.0.9.2-1.el7_6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package dnf-automatic.noarch 0:4.0.9.2-1.el7_6 will be installed
---> Package dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6 will be installed
--> Processing Dependency: python2-dnf-plugins-core = 4.0.2.2-3.el7_6 for package: dnf-plugins-core-4.0.2.2-3.el7_6.noarch
--> Running transaction check
---> Package python2-dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
dnf-automatic noarch 4.0.9.2-1.el7_6 extras 49 k
dnf-plugins-core noarch 4.0.2.2-3.el7_6 extras 51 k
Installing for dependencies:
python2-dnf-plugins-core noarch 4.0.2.2-3.el7_6 extras 165 k
Transaction Summary
=======================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 265 k
Installed size: 597 k
Is this ok [y/d/N]: y
Downloading packages:
(1/3): dnf-plugins-core-4.0.2.2-3.el7_6.noarch.rpm | 51 kB 00:00:00
(2/3): dnf-automatic-4.0.9.2-1.el7_6.noarch.rpm | 49 kB 00:00:00
(3/3): python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch.rpm | 165 kB 00:00:00
---------------------------------------------------------------------------------------
Total 502 kB/s | 265 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch 1/3
Installing : dnf-plugins-core-4.0.2.2-3.el7_6.noarch 2/3
Installing : dnf-automatic-4.0.9.2-1.el7_6.noarch 3/3
Verifying : dnf-plugins-core-4.0.2.2-3.el7_6.noarch 1/3
Verifying : python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch 2/3
Verifying : dnf-automatic-4.0.9.2-1.el7_6.noarch 3/3
Installed:
dnf-automatic.noarch 0:4.0.9.2-1.el7_6 dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6
Dependency Installed:
python2-dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6
Complete!
[root@localhost ~]#
[root@localhost ~]# ansible localhost -m yum -a "name=dnf state=absent"
localhost | SUCCESS => {
"changed": true,
"msg": "",
"rc": 0,
"results": [
"Loaded plugins: fastestmirror, langpacks\nResolving Dependencies\n--> Running transaction check\n---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be erased\n--> Processing Dependency: dnf = 4.0.9.2-1.el7_6 for package: dnf-automatic-4.0.9.2-1.el7_6.noarch\n--> Running transaction check\n---> Package dnf-automatic.noarch 0:4.0.9.2-1.el7_6 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n dnf noarch 4.0.9.2-1.el7_6 @extras 1.6 M\nRemoving for dependencies:\n dnf-automatic noarch 4.0.9.2-1.el7_6 @extras 52 k\n\nTransaction Summary\n================================================================================\nRemove 1 Package (+1 Dependent package)\n\nInstalled size: 1.6 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : dnf-automatic-4.0.9.2-1.el7_6.noarch 1/2 \n Erasing : dnf-4.0.9.2-1.el7_6.noarch 2/2 \n Verifying : dnf-automatic-4.0.9.2-1.el7_6.noarch 1/2 \n Verifying : dnf-4.0.9.2-1.el7_6.noarch 2/2 \n\nRemoved:\n dnf.noarch 0:4.0.9.2-1.el7_6 \n\nDependency Removed:\n dnf-automatic.noarch 0:4.0.9.2-1.el7_6 \n\nComplete!\n"
]
}
[root@localhost ~]# ansible localhost -m yum -a "name=dnf* state=present"
localhost | SUCCESS => {
"changed": false,
"msg": "",
"rc": 0,
"results": [
"dnf-data-4.0.9.2-1.el7_6.noarch providing dnf* is already installed"
]
}
[root@localhost ~]# ansible localhost -m yum -a "name=dnf state=present"
localhost | SUCCESS => {
"changed": true,
"msg": "",
"rc": 0,
"results": [
"Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * base: mirror.nbrc.ac.in\n * extras: mirror.nbrc.ac.in\n * updates: mirror.nbrc.ac.in\nResolving Dependencies\n--> Running transaction check\n---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n dnf noarch 4.0.9.2-1.el7_6 extras 357 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 357 k\nInstalled size: 1.6 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : dnf-4.0.9.2-1.el7_6.noarch 1/1 \n Verifying : dnf-4.0.9.2-1.el7_6.noarch 1/1 \n\nInstalled:\n dnf.noarch 0:4.0.9.2-1.el7_6 \n\nComplete!\n"
]
}
[root@localhost ~]#
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: python2-dnf = 4.0.9.2-1.el7_6 for package: dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package python2-dnf.noarch 0:4.0.9.2-1.el7_6 will be installed
--> Processing Dependency: dnf-data = 4.0.9.2-1.el7_6 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libcomps >= 0.1.8 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-hawkey >= 0.22.5 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: libmodulemd >= 1.4.0 for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Processing Dependency: python2-libdnf for package: python2-dnf-4.0.9.2-1.el7_6.noarch
--> Running transaction check
---> Package dnf-data.noarch 0:4.0.9.2-1.el7_6 will be installed
---> Package libmodulemd.x86_64 0:1.6.3-1.el7 will be installed
---> Package python2-hawkey.x86_64 0:0.22.5-1.el7_6 will be installed
--> Processing Dependency: libdnf(x86-64) = 0.22.5-1.el7_6 for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolvext.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsolv.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libsmartcols.so.1()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: librepo.so.0()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
--> Processing Dependency: libdnf.so.2()(64bit) for package: python2-hawkey-0.22.5-1.el7_6.x86_64
---> Package python2-libcomps.x86_64 0:0.1.8-12.el7 will be installed
--> Processing Dependency: libcomps(x86-64) = 0.1.8-12.el7 for package: python2-libcomps-0.1.8-12.el7.x86_64
--> Processing Dependency: libcomps.so.0.1.6()(64bit) for package: python2-libcomps-0.1.8-12.el7.x86_64
---> Package python2-libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
--> Running transaction check
---> Package libcomps.x86_64 0:0.1.8-12.el7 will be installed
---> Package libdnf.x86_64 0:0.22.5-1.el7_6 will be installed
---> Package librepo.x86_64 0:1.8.1-7.el7 will be installed
---> Package libsmartcols.x86_64 0:2.23.2-59.el7_6.1 will be installed
---> Package libsolv.x86_64 0:0.6.34-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
dnf noarch 4.0.9.2-1.el7_6 extras 357 k
Installing for dependencies:
dnf-data noarch 4.0.9.2-1.el7_6 extras 51 k
libcomps x86_64 0.1.8-12.el7 extras 75 k
libdnf x86_64 0.22.5-1.el7_6 extras 533 k
libmodulemd x86_64 1.6.3-1.el7 extras 141 k
librepo x86_64 1.8.1-7.el7 base 81 k
libsmartcols x86_64 2.23.2-59.el7_6.1 updates 140 k
libsolv x86_64 0.6.34-2.el7 base 328 k
python2-dnf noarch 4.0.9.2-1.el7_6 extras 414 k
python2-hawkey x86_64 0.22.5-1.el7_6 extras 68 k
python2-libcomps x86_64 0.1.8-12.el7 extras 47 k
python2-libdnf x86_64 0.22.5-1.el7_6 extras 608 k
Transaction Summary
=======================================================================================
Install 1 Package (+11 Dependent packages)
Total size: 2.8 M
Total download size: 2.6 M
Installed size: 10 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): libcomps-0.1.8-12.el7.x86_64.rpm | 75 kB 00:00:00
(2/11): dnf-data-4.0.9.2-1.el7_6.noarch.rpm | 51 kB 00:00:00
(3/11): dnf-4.0.9.2-1.el7_6.noarch.rpm | 357 kB 00:00:00
(4/11): python2-dnf-4.0.9.2-1.el7_6.noarch.rpm | 414 kB 00:00:00
(5/11): librepo-1.8.1-7.el7.x86_64.rpm | 81 kB 00:00:00
(6/11): libmodulemd-1.6.3-1.el7.x86_64.rpm | 141 kB 00:00:00
(7/11): libsolv-0.6.34-2.el7.x86_64.rpm | 328 kB 00:00:00
(8/11): python2-hawkey-0.22.5-1.el7_6.x86_64.rpm | 68 kB 00:00:00
(9/11): libdnf-0.22.5-1.el7_6.x86_64.rpm | 533 kB 00:00:01
(10/11): python2-libdnf-0.22.5-1.el7_6.x86_64.rpm | 608 kB 00:00:00
(11/11): python2-libcomps-0.1.8-12.el7.x86_64.rpm | 47 kB 00:00:00
---------------------------------------------------------------------------------------
Total 1.4 MB/s | 2.6 MB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libmodulemd-1.6.3-1.el7.x86_64 1/12
Installing : librepo-1.8.1-7.el7.x86_64 2/12
Installing : libsolv-0.6.34-2.el7.x86_64 3/12
Installing : libsmartcols-2.23.2-59.el7_6.1.x86_64 4/12
Installing : libdnf-0.22.5-1.el7_6.x86_64 5/12
Installing : python2-libdnf-0.22.5-1.el7_6.x86_64 6/12
Installing : python2-hawkey-0.22.5-1.el7_6.x86_64 7/12
Installing : libcomps-0.1.8-12.el7.x86_64 8/12
Installing : python2-libcomps-0.1.8-12.el7.x86_64 9/12
Installing : dnf-data-4.0.9.2-1.el7_6.noarch 10/12
Installing : python2-dnf-4.0.9.2-1.el7_6.noarch 11/12
Installing : dnf-4.0.9.2-1.el7_6.noarch 12/12
Verifying : python2-libdnf-0.22.5-1.el7_6.x86_64 1/12
Verifying : python2-libcomps-0.1.8-12.el7.x86_64 2/12
Verifying : dnf-data-4.0.9.2-1.el7_6.noarch 3/12
Verifying : libdnf-0.22.5-1.el7_6.x86_64 4/12
Verifying : libmodulemd-1.6.3-1.el7.x86_64 5/12
Verifying : python2-hawkey-0.22.5-1.el7_6.x86_64 6/12
Verifying : python2-dnf-4.0.9.2-1.el7_6.noarch 7/12
Verifying : libsmartcols-2.23.2-59.el7_6.1.x86_64 8/12
Verifying : libsolv-0.6.34-2.el7.x86_64 9/12
Verifying : librepo-1.8.1-7.el7.x86_64 10/12
Verifying : libcomps-0.1.8-12.el7.x86_64 11/12
Verifying : dnf-4.0.9.2-1.el7_6.noarch 12/12
Installed:
dnf.noarch 0:4.0.9.2-1.el7_6
Dependency Installed:
dnf-data.noarch 0:4.0.9.2-1.el7_6 libcomps.x86_64 0:0.1.8-12.el7
libdnf.x86_64 0:0.22.5-1.el7_6 libmodulemd.x86_64 0:1.6.3-1.el7
librepo.x86_64 0:1.8.1-7.el7 libsmartcols.x86_64 0:2.23.2-59.el7_6.1
libsolv.x86_64 0:0.6.34-2.el7 python2-dnf.noarch 0:4.0.9.2-1.el7_6
python2-hawkey.x86_64 0:0.22.5-1.el7_6 python2-libcomps.x86_64 0:0.1.8-12.el7
python2-libdnf.x86_64 0:0.22.5-1.el7_6
Complete!
[root@localhost ~]# yum install dnf*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Package dnf-4.0.9.2-1.el7_6.noarch already installed and latest version
Package dnf-data-4.0.9.2-1.el7_6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package dnf-automatic.noarch 0:4.0.9.2-1.el7_6 will be installed
---> Package dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6 will be installed
--> Processing Dependency: python2-dnf-plugins-core = 4.0.2.2-3.el7_6 for package: dnf-plugins-core-4.0.2.2-3.el7_6.noarch
--> Running transaction check
---> Package python2-dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
dnf-automatic noarch 4.0.9.2-1.el7_6 extras 49 k
dnf-plugins-core noarch 4.0.2.2-3.el7_6 extras 51 k
Installing for dependencies:
python2-dnf-plugins-core noarch 4.0.2.2-3.el7_6 extras 165 k
Transaction Summary
=======================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 265 k
Installed size: 597 k
Is this ok [y/d/N]: y
Downloading packages:
(1/3): dnf-plugins-core-4.0.2.2-3.el7_6.noarch.rpm | 51 kB 00:00:00
(2/3): dnf-automatic-4.0.9.2-1.el7_6.noarch.rpm | 49 kB 00:00:00
(3/3): python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch.rpm | 165 kB 00:00:00
---------------------------------------------------------------------------------------
Total 502 kB/s | 265 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch 1/3
Installing : dnf-plugins-core-4.0.2.2-3.el7_6.noarch 2/3
Installing : dnf-automatic-4.0.9.2-1.el7_6.noarch 3/3
Verifying : dnf-plugins-core-4.0.2.2-3.el7_6.noarch 1/3
Verifying : python2-dnf-plugins-core-4.0.2.2-3.el7_6.noarch 2/3
Verifying : dnf-automatic-4.0.9.2-1.el7_6.noarch 3/3
Installed:
dnf-automatic.noarch 0:4.0.9.2-1.el7_6 dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6
Dependency Installed:
python2-dnf-plugins-core.noarch 0:4.0.2.2-3.el7_6
Complete!
[root@localhost ~]#
[root@localhost ~]# ansible localhost -m yum -a "name=dnf state=absent"
localhost | SUCCESS => {
"changed": true,
"msg": "",
"rc": 0,
"results": [
"Loaded plugins: fastestmirror, langpacks\nResolving Dependencies\n--> Running transaction check\n---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be erased\n--> Processing Dependency: dnf = 4.0.9.2-1.el7_6 for package: dnf-automatic-4.0.9.2-1.el7_6.noarch\n--> Running transaction check\n---> Package dnf-automatic.noarch 0:4.0.9.2-1.el7_6 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n dnf noarch 4.0.9.2-1.el7_6 @extras 1.6 M\nRemoving for dependencies:\n dnf-automatic noarch 4.0.9.2-1.el7_6 @extras 52 k\n\nTransaction Summary\n================================================================================\nRemove 1 Package (+1 Dependent package)\n\nInstalled size: 1.6 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : dnf-automatic-4.0.9.2-1.el7_6.noarch 1/2 \n Erasing : dnf-4.0.9.2-1.el7_6.noarch 2/2 \n Verifying : dnf-automatic-4.0.9.2-1.el7_6.noarch 1/2 \n Verifying : dnf-4.0.9.2-1.el7_6.noarch 2/2 \n\nRemoved:\n dnf.noarch 0:4.0.9.2-1.el7_6 \n\nDependency Removed:\n dnf-automatic.noarch 0:4.0.9.2-1.el7_6 \n\nComplete!\n"
]
}
[root@localhost ~]# ansible localhost -m yum -a "name=dnf* state=present"
localhost | SUCCESS => {
"changed": false,
"msg": "",
"rc": 0,
"results": [
"dnf-data-4.0.9.2-1.el7_6.noarch providing dnf* is already installed"
]
}
[root@localhost ~]# ansible localhost -m yum -a "name=dnf state=present"
localhost | SUCCESS => {
"changed": true,
"msg": "",
"rc": 0,
"results": [
"Loaded plugins: fastestmirror, langpacks\nLoading mirror speeds from cached hostfile\n * base: mirror.nbrc.ac.in\n * extras: mirror.nbrc.ac.in\n * updates: mirror.nbrc.ac.in\nResolving Dependencies\n--> Running transaction check\n---> Package dnf.noarch 0:4.0.9.2-1.el7_6 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n dnf noarch 4.0.9.2-1.el7_6 extras 357 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 357 k\nInstalled size: 1.6 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : dnf-4.0.9.2-1.el7_6.noarch 1/1 \n Verifying : dnf-4.0.9.2-1.el7_6.noarch 1/1 \n\nInstalled:\n dnf.noarch 0:4.0.9.2-1.el7_6 \n\nComplete!\n"
]
}
[root@localhost ~]#
Comments
Post a Comment