2

I was not aware that zypper is like yum for SUSE. I deleted that file from bin, now I am not able to install any application through it. I throws an error that

sudo: zypper: command not found

How do I install zypper back and make it work like as normal?

halfer
  • 19,824
  • 17
  • 99
  • 186
Nitesh kumar
  • 348
  • 2
  • 8
  • 25

1 Answers1

4

Depending on your system and architecture, find Zypper package file (RPM) in online repository (i.e. http://download.opensuse.org/distribution/13.2/repo/oss/suse/i586/ ), download it (wget) and install it (rpm -i) :

wget http://download.opensuse.org/distribution/13.2/repo/oss/suse/i586/zypper-1.11.14-2.1.i586.rpm

sudo rpm -ivh zypper-1.11.14-2.1.i586.rpm
Chris Maes
  • 35,025
  • 12
  • 111
  • 136
Stéphane B.
  • 3,260
  • 2
  • 30
  • 35
  • It failed due to two dependencies: 1> libzypp.so.1429()(64bit) is needed by zypper-1.11.14-2.1.x86_64 2> libzypp.so.1429(ZYPP_plain)(64bit) is needed by zypper-1.11.14-2.1.x86_64 but i already have the newer version of those (package libsolv-tools-0.6.14-2.13.1.x86_64 [which is newer than libsolv-tools-0.6.6-1.1.x86_64) is already installed ] and hence I was not able to install the exact version of the dependency the zypper is ask for. How do i proceed, should I get the updated version of zypper? – Nitesh kumar Feb 23 '17 at 09:10
  • zypper-1.12.23-1.3.x86_64 this was my zypper earlier – Nitesh kumar Feb 23 '17 at 09:42
  • @Niteshkumar this answer is example how to deal with that situation , not step by step guide. – mimi.vx Mar 02 '17 at 19:21
  • @Niteshkumar, I am facing the same issue... Nitesh have you found the solution for the above issue? – Neeraj Kumar Yadav Aug 20 '17 at 15:56
  • @NeerajKumarYadav I had the ISO image of the SUSE I was working with. I extracted ISO and got the "zypper" file from there and pasted it back to the bin where I deleted it from. Try the same If you have the iso of the same SUSE verison. – Nitesh kumar Aug 20 '17 at 17:50