Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I accidentally deleted python, python2, python2.7 files from /usr/bin/. Now yum is also not working.

Is it possible to recover them?

share|improve this question
1  
Which distribution are you using? – depquid Apr 3 at 16:36
cross-post – don_crissti Apr 3 at 16:38
Please don't cross-post. Still open on SU; closing here – Michael Mrozek Apr 3 at 16:44

closed as too localized by Michael Mrozek Apr 3 at 16:44

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Depending on how you installed them, you should be able to reinstall.

On Fedora, Red Hat Enterprise Linux or clones like CentOS you'd do yum -y reinstall python to install the package (even if it is already installed), for example to fix broken packages.

Other Linux distributions should have similar commands, I don't know enough to suggest anything for them. Hopefully others chip in.

share|improve this answer
2  
If "yum is also not working", how can you use yum to fix it? – Michael Mrozek Apr 3 at 16:43
@MichaelMrozek, Use rpm to reinstall yum... but that is another question, not a comment. – vonbrand Apr 3 at 16:44

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