Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using CentOS and I have tried to remove Perl from my machine to re-install it. For that, I have used 'Yum remove perl.i386' . But it results in the removal of other packages including Graphics. How can I fix this issue and how can I install all the packages that are removed.

Please help me in this.

share|improve this question
    
is the command Yum install perl.i386 will work? Will it install all the packages that has been removed? –  sneya Feb 24 '13 at 13:36

1 Answer 1

up vote 0 down vote accepted

The way to do what you want without disturbing other stuff is to

yum reinstall your packages here

Your reckless yum remove got rid of everyting Perl depends on, the log at /var/log/yum.log will tell you what that was, and you can reinstall.

share|improve this answer
    
Do I have to reinstall all the packages independently? or Yum reinstall perl.i386 will add all the removed packages? –  sneya Feb 25 '13 at 1:42
    
Reinstalling perl.i386 will reinstall that one only, that's why I told you to check what got uninstalled. –  vonbrand Feb 25 '13 at 1:49
    
ok. So we need to reinstall each one(including XServer) using yum. right? –  sneya Feb 25 '13 at 2:01
    
@sneya, Ouch if all that got erased. Yes, you'll have to install each of them again. Just Unix' a bit cruel way of teaching newbies to be careful, what is being asked will be done without any second guessing. Consider yourself thaught. –  vonbrand Feb 25 '13 at 2:04
    
Thank you. I have re-installed all the packages that have erased and now it is working. –  sneya Feb 25 '13 at 4:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.