mv CentOS-Base.repo CentOS-Base.repo.backupAs a result pirut started and showed all installed packaged. However, no packages available for installation were shown. The reason is that there are no repositories. For that reason I mounted DVD image of my CentOS 5.2 in /media/CentOS. If CentoOS folder does not exist please create it. To mount the DVD I used the following:
mount -o loop /home/me/CentOS-5.2-x86_64-bin-DVD.iso /media/CentOSThen I change enabled=0 to enabled=1in file /etc/yum.repos.d/CentOS-Media.repo. And finally, I could install software from CentOS dvd.