When executing the rpm-e -- nodeps command, I did not note that I wrote the rpm-e -- nodepsrpm command. as a result, the rpm was uninstalled. I can do this! You can also stop yourself. But if it commits suicide, it should be able to be revived. think about the solution. if you use the reinstall method to solve this problem, it will not be resolved. So through direct compilation: tarxjvfrpm-4.8.0.tar.bz2 and then./con
When executing the rpm-e -- nodeps command, I did not note that I wrote the rpm-e -- nodeps rpm command. as a result, the rpm was uninstalled. I can do this! You can also stop yourself. But if it commits suicide, it should be able to be revived. think about the solution. if you use the reinstall method to solve this problem, it will not be resolved. Therefore, by directly compiling:
Tarxjvf rpm-4.8.0.tar.bz2
Then./configure & make install
Solve this problem. as a result, gcc is not installed on this machine!
Why?
Can I copy data directly from another machine? So I run the following command on the machine where the rpm Package is installed:
Rpm-ql rpm
Rpm-ql rpm-libs
Copying all the files it lists to the target machine is really physical, and the time consumption is not too high! But it really works!
Happy!
But the rpm command of the copied machine does not reflect any, so it is depressing! I searched for the solution on the Internet:
Fix the rpm command (accidentally delete the rpm command) method or
/Var/lib/rpm> rm __*
/Var/lib/rpm> rpm -- rebuildd cannot be connected, so it is depressing! I thought about it again. I didn't respond when I only run the rpm command. the above command is useless. is The rpm file damaged? Where can I find this rpm file? I downloaded a rpm-4.8.0-37.el6.x86_64.rpm on the internet but how to decompress it, there is a command: rpm2cpio rpm-4.8.0-37.el6.x86_64.rpm | cpio-div I replaced the unzipped/bin/rpm with the system bin/rpm and executed the rpm, okay! Remind yourself to do things seriously in the future!