[CentOS] RHEL -> CentOS

Dag Wieers dag at centos.org
Tue Feb 3 19:24:05 UTC 2009


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).

-- 
--   dag wieers,  dag at centos.org,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]



More information about the CentOS mailing list