run the command: zypper rm perl incautiously

Hello everyone,
I run the command “zypper rm perl” incautiously in openSUSE, and i found that I could not use many apps any more (even terminal), what should I do?
Must i reinstall system?
I will appreciate for your reply.

Can you do ctrl-alt-F2, log into the terminal, and go to root, and then zypper in perl ?

Well, this must have removed a lot of packages… On my system zypper wants to remove 1117 (even the whole YaST and KDE) if I try this. And you did say “yes” to zypper’s confirmation request? :open_mouth:

Can you still even use your system now?

I think a complete reinstall would be easier than manually reinstall all missing packages.
But you could try to install the standard patterns again:

sudo zypper in -f patterns-openSUSE-base patterns-openSUSE-enhanced_base patterns-openSUSE-enhanced_base_opt patterns-openSUSE-fonts patterns-openSUSE-fonts_opt patterns-openSUSE-multimedia patterns-openSUSE-games patterns-openSUSE-multimedia_opt patterns-openSUSE-imaging patterns-openSUSE-non_oss patterns-openSUSE-imaging_opt patterns-openSUSE-non_oss_opt patterns-openSUSE-office patterns-openSUSE-office_opt patterns-openSUSE-sw_management patterns-openSUSE-x11 patterns-openSUSE-x11_opt patterns-openSUSE-yast2_basis

You didn’t specify the desktop environment you use. For KDE you might want to also add those:

sudo zypper in -f patterns-openSUSE-kde4 patterns-openSUSE-kde4_basis patterns-openSUSE-kde4_office patterns-openSUSE-kde4_multimedia patterns-openSUSE-sw_management_kde4 patterns-openSUSE-kde4_pure patterns-openSUSE-kde4_utilities patterns-openSUSE-kde4_utilities_opt patterns-openSUSE-kde4_internet patterns-openSUSE-kde4_imaging patterns-openSUSE-kde4_games patterns-openSUSE-kde4_yast

Not sure about other DEs though.
You could have a look in YaST afterwards, click on the “View” button and select “Schemata”. You can then select the patterns in the list on the left…

Note: These are all the patterns a standard openSUSE installation installs by default. You probably wouldn’t need all of those.
And of course this doesn’t take stuff into account which you installed manually later… Just reinstall stuff that still doesn’t work with YaST or zypper. The dependecies that are missing will be pulled in automatically then.

Thanks for your reply.
**zypper in perl **just install the perl language interpreter(about 30MB). When i **zypper rm perl, **about 1GB files were deleted. According to my understanding(but i am not sure), some system files are written with perl language and when i zypper rm perl, anything related with perl were deleted.(Maybe this is why i could not use the apps, i even could not log in the system when i rebooted).

Hope that someone can help me.

Thank you very much.
I did input **yes. **:cry: And i regret for doing that.
I think I will reinstall my system. But your suggestion of “manually reinstall all missing packages” sounds interesting, maybe i will a try.
Thanks again.

I would suggest you start with the base patterns:

sudo zypper in -f patterns-openSUSE-base patterns-openSUSE-enhanced_base patterns-openSUSE-enhanced_base_opt

Then make YaST work:

sudo zypper in -f patterns-openSUSE-yast2_basis

Then the graphical system if necessary:

sudo zypper in -f patterns-openSUSE-x11 patterns-openSUSE-x11_opt

You could then use YaST to select the patterns or packages graphically…

wuqisheng1991 wrote:
> Thank you very much.
> I did input *yes. *:’( And i regret for doing that.
> I think I will reinstall my system. But your suggestion of “manually
> reinstall all missing packages” sounds interesting, maybe i will a try.
> Thanks again.

I think it would be best to reinstall, as long as you have backups of
everything you want to keep.

If you install the missing packages, you may well get a system that
works again, but you will never know if any future problems are due to
some weird effect of this accident. Far better in my opinion to start
from a known good base.

But by all means have a play first …

Maybe it helps to install all recommends again after installing perl. What packages will be installed when you do a

zypper inr

??

On 05/01/2013 02:06 PM, wuqisheng1991 wrote:
> Must i reinstall system?

reinstall is unnecessary, just restore from backup.


dd

Thanks to all of u for your replies, I havd reinstalled my openSUSE successfully without damaging the win7 (I got dual system). Thanks again.