On Sun, 30 Jul 2017 16:00, Alois Treindl <alois at ...> wrote: > On 07/30/2017 03:23 PM, Phil Perry wrote: > >> I would use yum to uninstall the packages that provide >> /etc/yum.repos.d/redhat.repo and /etc/yum/pluginconf.d/rhnplugin.conf >> >> On rhel7, these are yum-rhn-plugin and subscription-manager, use rpm to >> check which packages provide them on el6. >> > > which rpm command does this exactly? "man 8 rpm" search for "--file" short: rpm -qf [full-path-and-filename] long: rpm --query --file [full-path-and-filename] This queries the rpm-database for which package owns the given file. - Yamaban