On Tue, 3 Feb 2009, John R Pierce wrote:
I have a system that was originally installed with RHEL 3 x86_64, and I've since 'updated' it to CentOS 3 via installing yum and centos-release, then running a yum update.
is there any way I can force -all- installed packages to be replaced with their centos analogs just to be sure its all consistent?
When using apt-get you can do:
apt-get install --reinstall $(rpm -qa --qf '%{name}\n' | grep -v gpg-pubkey)
it requires that you have all packages available from repositories. If not you will have to exclude those packages too (using grep -v).