rescue usr/bin and /bin

Hello,

I deleted rm.So I can’t use rm command now.How can I rescue this.(yes very folly).

Thanks

On 2014-06-04 13:16, seniorc wrote:
>
> Hello,
>
> I deleted rm.So I can’t use rm command now.How can I rescue this.(yes
> very folly).

openSUSE version, please?

Don’t reboot your machine, it would break it. You have to reinstall
“coreutils”.

If it is only the ‘rm’ binary which was removed, you can just download
the coreutils rpm and extract the rm binary.


/bin/rm  -> /usr/bin/rm
/usr/bin/rm

You can extract the binary, for instance, using ‘mc’ to open the rpm.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Please be precise.

What is your openSUSE version?

Did you remove /bin/rm and /usr/bin/rm and nothing more?

I wouldn’t go through the trouble to extract rm.

The following command should not only re-install rm but also make sure the other coreutils components are latest

zypper in -f coreutils

HTH,
TSU