Removal and recovery of Linux unexpected rpm

Source: Internet
Author: User

background : When we first learned Linux, there were always all kinds of unexpected actions, what should we do when something happened? This article describes how to return to normal when the RPM is deleted by mistake.


RPM command in Linux is very important, without it you can only use the source package installation method to install software, but this is too inconvenient. So the existence of RPM is very necessary.



RPM Delete and Restore experiment

Experimental Purpose : restores the RPM software that has been deleted .

Experimental Process :


1, check the system version, RPM version.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/84/wKiom1fCRRXzFY2rAAAPM2356Mk452.gif "style=" float: none; "title=" Rpm1.gif "alt=" Wkiom1fcrrxzfy2raaapm2356mk452.gif "/>


2. Use the rpm Delete command to delete rpm

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/86/84/wKiom1fCRRWDfyCNAAAQa9C_QRo994.gif "style=" float: none; "title=" Rpm2.gif "alt=" Wkiom1fcrrwdfycnaaaqa9c_qro994.gif "/>


3, restart the system, after entering the CD-ROM boot .

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/86/84/wKioL1fCRRWj9gjuAAAQbLIS9TA439.gif "style=" float: none; "title=" Rpm3.gif "alt=" Wkiol1fcrrwj9gjuaaaqblis9ta439.gif "/>


4, after entering the mirror boot, select Troubleshooting

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/86/84/wKiom1fCRRXBFPMLAAAMpG9qUfo632.gif "style=" float: none; "title=" Rpm4.gif "alt=" Wkiom1fcrrxbfpmlaaampg9qufo632.gif "/>


5. Select rescue mode:Rescue a CentOS system

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/86/84/wKioL1fCRRXj96MVAAAW3Y35H6k666.gif "style=" float: none; "title=" Rpm5.gif "alt=" Wkiol1fcrrxj96mvaaaw3y35h6k666.gif "/>


6. Select Continue

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/84/wKiom1fCRRbRrU_3AAAwr_Za_fY768.gif "style=" width : 720px;height:533px; "title=" Rpm6.gif "width=" 720 "height=" 533 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" wKiom1fCRRbRrU_ 3aaawr_za_fy768.gif "/>


7, enter the command from the CD-ROM provided by the simplified operating system, view the CD and the root directory of the mount, using the command DF view.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/86/84/wKioL1fCRRaBCTfpAABBFMb_rKU572.gif "style=" width : 720px;height:396px; "title=" Rpm7.gif "width=" 720 "height=" 396 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1fcrrabctfpaabbfmb_rku572.gif "/>


8. Then use the RPM command to locate the path where the RPM package is installed, pointing to its installation path and declaring it to be installed as the root user.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/84/wKioL1fCRRbQtKsrAAAQ6rgPK9k191.gif "style=" width : 720px;height:96px; "title=" Rpm8.gif "width=" 720 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1fcrrbqtksraaaq6rgpk9k191.gif "/>


9, after the installation is restarted, the restart process will repair the system files, the process is a bit slow, need to wait a while.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/86/84/wKiom1fCRRawpMacAAARfU2GsOA051.gif "style=" float: none; "title=" Rpm9.gif "alt=" Wkiom1fcrrawpmacaaarfu2gsoa051.gif "/>


10, enter the system after opening the terminal input RPM.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/86/84/wKioL1fCRtehhUmwAABwfC6JG6w615.gif "title=" Rpm10.gif "width=" 720 "height=" 365 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:720px;height:365px; "alt=" Wkiol1fcrtehhumwaabwfc6jg6w615.gif "/>


11, RPM repair success.

This article is from "Zhang Fan-it's fantasy drifting" blog, please be sure to keep this source http://chawan.blog.51cto.com/9179874/1843480

Removal and recovery of Linux unexpected rpm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.