Code: [12:18][root@ovh-128.whippmedia.com centminmod]# yum autoremove Loaded plugins: fastestmirror, priorities Resolving Dependencies --> Running transaction check ---> Package ipset.x86_64 0:6.19-6.el7 will be erased --> Finished Dependency Resolution --> Finding unneeded leftover dependencies Found and removing 0 unneeded dependencies Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Removing: ipset x86_64 6.19-6.el7 @anaconda 65 k Transaction Summary ============================================================================================================================================================================ Remove 1 Package Installed size: 65 k Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Current iptables configuration requires ipsets error: %preun(ipset-6.19-6.el7.x86_64) scriptlet failed, exit status 1 Error in PREUN scriptlet in rpm package ipset-6.19-6.el7.x86_64 Verifying : ipset-6.19-6.el7.x86_64 1/1 Failed: ipset.x86_64 0:6.19-6.el7 Complete!
any reason you are removing ipset ? combined with CSF Firewall and iptables usage it's better performing for handling large sets of ip addresses being whitelisted or blacklisted. but haven't come across that error before as never really wanted to remove ipset if your system supports it.
hmmm yum(8) - Linux manual page what's output for this command Code (Text): yumdb search reason user | grep -A2 ipset for me on CentOS 7 returns on non-OpenVZ systems (as ipset isn't supported in OpenVZ) Code (Text): yumdb search reason user | grep -A2 ipset ipset-devel-6.19-6.el7.x86_64 reason = use yum autoremove returns quite a few packages Code (Text): yum autoremove Loaded plugins: fastestmirror, priorities Resolving Dependencies --> Running transaction check ---> Package NetworkManager-libnm.x86_64 1:1.4.0-17.el7_3 will be erased ---> Package dnsmasq.x86_64 0:2.66-21.el7 will be erased ---> Package ebtables.x86_64 0:2.0.10-15.el7 will be erased ---> Package firewalld-filesystem.noarch 0:0.4.3.2-8.1.el7_3.2 will be erased ---> Package fxload.x86_64 0:2002_04_11-16.el7 will be erased ---> Package ipset.x86_64 0:6.19-6.el7 will be erased ---> Package libndp.x86_64 0:1.2-7.el7 will be erased ---> Package perl-Net-LibIDN.x86_64 0:0.12-24.rhel7 will be erased ---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be erased ---> Package ppp.x86_64 0:2.4.5-34.0.rhel7 will be erased ---> Package python-firewall.noarch 0:0.4.3.2-8.1.el7_3.2 will be erased ---> Package teamd.x86_64 0:1.25-4.el7 will be erased --> Finished Dependency Resolution --> Finding unneeded leftover dependencies ---> Marking libdaemon to be removed - no longer needed by teamd ---> Marking libteam to be removed - no longer needed by teamd ---> Marking jansson to be removed - no longer needed by teamd ---> Marking libnl3-cli to be removed - no longer needed by teamd ---> Marking python-slip-dbus to be removed - no longer needed by python-firewall ---> Marking perl-Net-Daemon to be removed - no longer needed by perl-PlRPC ---> Marking libgudev1 to be removed - no longer needed by NetworkManager-libnm ---> Marking python-slip to be removed - no longer needed by python-slip-dbus ---> Marking perl-Sys-Syslog to be removed - no longer needed by perl-Net-Daemon Found and removing 9 unneeded dependencies --> Running transaction check ---> Package jansson.x86_64 0:2.4-6.el7 will be erased ---> Package libdaemon.x86_64 0:0.14-7.el7 will be erased ---> Package libgudev1.x86_64 0:219-30.el7_3.7 will be erased ---> Package libnl3-cli.x86_64 0:3.2.28-3.el7_3 will be erased ---> Package libteam.x86_64 0:1.25-4.el7 will be erased ---> Package perl-Net-Daemon.noarch 0:0.48-14.rhel7 will be erased ---> Package perl-Sys-Syslog.x86_64 0:0.33-3.el7 will be erased ---> Package python-slip.noarch 0:0.4.0-2.el7 will be erased ---> Package python-slip-dbus.noarch 0:0.4.0-2.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================================================================================================================== Removing: NetworkManager-libnm x86_64 1:1.4.0-17.el7_3 @updates 1.1 M dnsmasq x86_64 2.66-21.el7 @anaconda 464 k ebtables x86_64 2.0.10-15.el7 @anaconda 343 k firewalld-filesystem noarch 0.4.3.2-8.1.el7_3.2 @updates 239 fxload x86_64 2002_04_11-16.el7 @anaconda 42 k ipset x86_64 6.19-6.el7 @anaconda 65 k libndp x86_64 1.2-7.el7 @anaconda 74 k perl-Net-LibIDN x86_64 0.12-24.rhel7 @city-fan.org 51 k perl-PlRPC noarch 0.2020-14.el7 @base 69 k ppp x86_64 2.4.5-34.0.rhel7 @city-fan.org 861 k python-firewall noarch 0.4.3.2-8.1.el7_3.2 @updates 1.6 M teamd x86_64 1.25-4.el7 @anaconda 271 k Removing for dependencies: jansson x86_64 2.4-6.el7 @anaconda 61 k libdaemon x86_64 0.14-7.el7 @anaconda 61 k libgudev1 x86_64 219-30.el7_3.7 @updates 51 k libnl3-cli x86_64 3.2.28-3.el7_3 @updates 690 k libteam x86_64 1.25-4.el7 @anaconda 98 k perl-Net-Daemon noarch 0.48-14.rhel7 @city-fan.org 95 k perl-Sys-Syslog x86_64 0.33-3.el7 @base 93 k python-slip noarch 0.4.0-2.el7 @anaconda 60 k python-slip-dbus noarch 0.4.0-2.el7 @anaconda 75 k Transaction Summary ========================================================================================================================================================================================================================================================== Remove 12 Packages (+9 Dependent packages) Installed size: 6.1 M Is this ok [y/N]: n I'd just NOT run autoremove then as some of these packages are needed for Centmin Mod.
Code: [12:24][root@ovh-128.whippmedia.com centminmod]# yumdb search reason user | grep -A2 ipset ipset-devel-6.19-6.el7.x86_64 reason = user
looks like ipset was installed as dependency to ipset-devel so not specifically by user, reason = dep hence autoremove lists it Code (Text): yumdb info ipset Loaded plugins: fastestmirror, priorities ipset-6.19-6.el7.x86_64 checksum_data = 7cdaf2fa4827723082ba8c8f7b3724cf25e347ae00b6876d46721a7afdafe0a7 checksum_type = sha256 from_repo = anaconda from_repo_revision = 1480942829 from_repo_timestamp = 1480942901 installed_by = 4294967295 reason = dep releasever = 7 var_uuid = ac7717cb-89ca-4ff8-8c1a-1695682b9099 as opposed to ipset-devel, reason = user Code (Text): yumdb info ipset-devel Loaded plugins: fastestmirror, priorities ipset-devel-6.19-6.el7.x86_64 checksum_data = e1840a9cefaad4788d1eb5c321fb4f884d09f8198be666bb3e7bff2e9d65f9cb checksum_type = sha256 command_line = -y install ipset ipset-devel from_repo = base from_repo_revision = 1480942829 from_repo_timestamp = 1480942901 installed_by = 0 origin_url = http://mirror.csclub.uwaterloo.ca/centos/7/os/x86_64/Packages/ipset-devel-6.19-6.el7.x86_64.rpm reason = user releasever = 7 var_infra = stock var_uuid = ac7717cb-89ca-4ff8-8c1a-1695682b9099
so if you reinstall ipset, it will mark it as reason = user Code (Text): yum reinstall ipset Code (Text): yumdb info ipset Loaded plugins: fastestmirror, priorities ipset-6.19-6.el7.x86_64 changed_by = 0 checksum_data = 7cdaf2fa4827723082ba8c8f7b3724cf25e347ae00b6876d46721a7afdafe0a7 checksum_type = sha256 command_line = reinstall ipset from_repo = base from_repo_revision = 1480942829 from_repo_timestamp = 1480942901 installed_by = 4294967295 origin_url = http://mirror.csclub.uwaterloo.ca/centos/7/os/x86_64/Packages/ipset-6.19-6.el7.x86_64.rpm reason = user releasever = 7 var_infra = stock var_uuid = ac7717cb-89ca-4ff8-8c1a-1695682b9099 and now yum autoremove will not list ipset. Guess autoremove can be dangerous if end users don't understand which packages are okay to remove as autoremove just lists all packages even ones installed due to dependency requirements