I have accidentally removed the symlink to
/bin/rpm from my Centos7 installation. Now the rpm command is not working. Does anyone know how to fix this one or how to add this again as symlink ?
/bin/rpm is typically not a symlink.
There is a symlink
/bin which points to
So if you have removed
/bin/rpm - you have removed an actual file, not a symlink.
For restoring it, you will need access to another CentOS 7 machine, running the same architecture (e.g. x86_64).
Copy it from the other machine by uploading it to the server via SFTP.
Ensure matching version afterward, by running:
yum reinstall rpm