

It was installed through DNF but not on explicit user request, i.e. A package only qualifies for removal via clean_requirements_on_remove if Remove dependencies that are no longer used during dnf remove.

#Apt autopurge install#
This can be useful if you have the idea that you might install the application again in future. When I removed it with YUM you'll get messages in the output like this: warning: /etc/sysconfig/elasticsearch saved as /etc/sysconfig/elasticsearch.rpmsave Use apt-get remove to uninstall your application, without removing it's configurations.

For example when I recently installed ElasticSearch's RPM for 2.3 I modified several files that were associated with this RPM. The only other method I can conceive of here is to parse the output from yum remove and then manually delete any files that may have been modified. for package in package1 package2 package3Įcho "removing config files for $package"įor file in $(rpm -q -configfiles $package) I found this answer to a duplicate question on ServerFault titled: yum equivalent of “apt-get purge" that provides the only method I've seen that can do what apt-get purge does on Ubuntu/Debian.
