By mistake If u have deleted /sbin/poweroff file from system.
How to find the RPM has this /sbin/poweroff
# yum whatprovides /sbin/poweroff
systemd-sysvinit-10-2.fc14.1.
How to find the RPM has this /sbin/poweroff
# yum whatprovides /sbin/poweroff
systemd-sysvinit-10-2.fc14.1.
Now, if you try to install that package using yum, we will get “Package systemd-sysvinit-10-2.fc14.1.
To restore /sbin/poweroff, all we need is systemd-sysvinit-10-2.fc14.1.
# rpm -ql rpm | grep rpm2cpio
/usr/bin/rpm2cpio
/usr/lib/rpm/rpm2cpio.sh
/usr/share/man/ja/man8/
/usr/share/man/ko/man8/
/usr/share/man/man8/rpm2cpio.
/usr/share/man/pl/man8/
/usr/share/man/ru/man8/
# rpm2cpio systemd-sysvinit-10-2.fc14.1.
# cp sbin/poweroff /sbin/
Note: There is another way to install systemd-sysvinit-10-2.fc14.1.
# rpm -ivh systemd-sysvinit-10-2.fc14.1.
No comments:
Post a Comment