Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – Futuregeek Feb 24 '13 at 13:36
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? – Futuregeek 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? – Futuregeek 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. – Futuregeek Feb 25 '13 at 4:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .