Error removal Package Recovery instance in Linux _linux

Source: Internet
Author: User

This article is mainly about the removal of Linux in the case of the deletion of the package, small series feel pretty good, now share to everyone, also give you a reference. Follow the small knitting to come and see.

Take CentOS-7.2 as an example:

Delete Kernel package, cannot reboot:

1, delete kernel package

2, reboot, unable to start

3, restart again, when the progress bar press ESC, the following interface appears, choose from CD-ROM boot

4, enter the following interface, select troubleshooting

5, choose Rescue Mode, Rescue a CentOS system

6. Type carriage return

7, select Continue, type 1, enter

8, enter the shell

9, to see if the disc is mounted, if not mounted, first mounted CD-ROM

As shown below, the disc has been mounted to/run/instatll/repo

10, the installation of kernel package, you need to note that the current is not the root position, as shown above, the root position displayed as/mnt/sysimage, so you need to specify the location of the root, after completion, restart can be.

This is to remove the kernel package as an example, if you mistakenly delete the RPM package, the rpm command and the Yum command is not available, you can use the above methods to restore the installation.
CentOS6 and CentOS7 Enter rescue mode interface is different, but the repair steps are basically the same, in CentOS6, choose CD-ROM drive resuce installed system, then there will be some language, keyboard, and network cards and other basic choices, The Resuce selection interface will then appear, select Continue, continue to select until the shell start shell, into the shell, after the operation and 7 is the same.

I hope this article is helpful to you, in Linux mistakenly remove the package recovery instance content is introduced here. I hope you will continue to pay attention to our website! Want to learn Linux can continue to focus on this site.

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.