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