# File lib/puppet/provider/package/rpm.rb, line 102
102:   def uninstall
103:     query unless get(:arch)
104:     nvr = "#{get(:name)}-#{get(:version)}-#{get(:release)}"
105:     arch = ".#{get(:arch)}"
106:     # If they specified an arch in the manifest, erase that Otherwise,
107:     # erase the arch we got back from the query. If multiple arches are
108:     # installed and only the package name is specified (without the
109:     # arch), this will uninstall all of them on successive runs of the
110:     # client, one after the other
111:     if @resource[:name][-arch.size, arch.size] == arch
112:       nvr += arch
113:     else
114:       nvr += ".#{get(:arch)}"
115:     end
116:     rpm "-e", nvr
117:   end