What is Fedora's equivalent of 'apt-get purge'?
In Debian, there's at least two ways to delete a package:
apt-get remove pkgname
apt-get purge pkgname
The first preserves system-wide config files (i.e. those found in "/etc"), while the second doesn't.
What is Fedora's equivalent of the second form,
purge? Or maybe I should rather ask if
yum remove pkgnameactually preserves config files.
yum removeis not guaranteed to preserve configuration files.
As stated in the yum HOWTO:
In any event, the command syntax for package removal is:
# yum remove package1 [package2 package3...]
As noted above, it removes package1 and all packages in the dependency tree that depend on package1, possibly irreversibly as far as configuration data is concerned.
As James points out, you can use the
rpm -ecommand to erase a package but save backup copies of any configuration files that have changed.
For more information, see Using RPM to Erase Packages. In particular:
It checks to see if any of the package's config files have been modified. If so, it saves copies of them.