Results 1 to 10 of 10

Thread: run the command: zypper rm perl incautiously

  1. #1

    Default 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.

  2. #2

    Default Re: run the command: zypper rm perl incautiously

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

  3. #3

    Default Re: run the command: zypper rm perl incautiously

    Quote Originally Posted by wuqisheng1991 View Post
    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.
    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?

    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:
    Code:
    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:
    Code:
    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.

  4. #4

    Default Re: run the command: zypper rm perl incautiously

    Quote Originally Posted by shane2943 View Post
    Can you do ctrl-alt-F2, log into the terminal, and go to root, and then zypper in perl ?
    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.

  5. #5

    Default Re: run the command: zypper rm perl incautiously

    Quote Originally Posted by wolfi323 View Post
    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?

    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:
    Code:
    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:
    Code:
    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.


    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.

  6. #6

    Default Re: run the command: zypper rm perl incautiously

    Quote Originally Posted by wuqisheng1991 View Post
    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 would suggest you start with the base patterns:
    Code:
    sudo zypper in -f patterns-openSUSE-base patterns-openSUSE-enhanced_base patterns-openSUSE-enhanced_base_opt
    Then make YaST work:
    Code:
    sudo zypper in -f patterns-openSUSE-yast2_basis
    Then the graphical system if necessary:
    Code:
    sudo zypper in -f patterns-openSUSE-x11 patterns-openSUSE-x11_opt
    You could then use YaST to select the patterns or packages graphically...

  7. #7

    Default Re: run the command: zypper rm perl incautiously

    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 ...

  8. #8
    Join Date
    Sep 2012
    Location
    Germany
    Posts
    254

    Default AW: run the command: zypper rm perl incautiously

    Maybe it helps to install all recommends again after installing perl. What packages will be installed when you do a
    Code:
    zypper inr
    ??
    zypp it...

  9. #9
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: run the command: zypper rm perl incautiously

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


    reinstall is unnecessary, just restore from backup.

    --
    dd

  10. #10

    Default Re: run the command: zypper rm perl incautiously

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •