Accidentally removed zypper

Hi,

trying to find a way to get a more recent version of some libboost libraries (at least 1.72), I removed the 1.66 versions. I was too fast and didn’t fully read the list of packages that depend on it. Unfortunately, zypper was one of them. So it’s gone along with some other very important stuff.

What would I need to do to restore the zypper functionality?

$ uname -a
Linux dikdik 6.4.0-150600.23.47-default #1 SMP PREEMPT_DYNAMIC Thu Apr 3 03:44:04 UTC 2025 (2854fd7) x86_64 x86_64 x86_64 GNU/Linux

I still can log in and do everything but I’m afraid to even reboot now.

I’d very much appreciate any ideas how to fix this. Thanks in advance.

Cheers,
Paul

The list of removed packages is:

autoyast2-installation
libboost_serialization1_66_0
libboost_system1_66_0
libboost_thread1_66_0
libyui-ncurses-pkg16
libyui-qt-pkg16
libzypp
patterns-base-base
patterns-base-enhanced_base
patterns-base-sw_management
patterns-yast-yast2_basis
purge-kernels-service
yast2
yast2-add-on
yast2-apparmor
yast2-bootloader
yast2-control-center
yast2-control-center-qt
yast2-country
yast2-firewall
yast2-installation
yast2-ldap
yast2-metapackage-handler
yast2-network
yast2-ntp-client
yast2-online-update
yast2-online-update-frontend
yast2-packager
yast2-pam
yast2-pkg-bindings
yast2-proxy
yast2-security
yast2-services-manager
yast2-slp
yast2-storage-ng
yast2-update
yast2-users
yast2-vm zypper
zypper-lifecycle-plugin
zypper-needs-restarting

@paul.foerster are you running btrfs, if so you can roll back to a previous snapshot?

If you cannot use a snapper (btrfs) snapshot to go back to (man snapper → snapper undochange) you might still be able to use a barebone rpm -i packagename.rpm to reinstall a deleted package. Maybe reinstalling libzypp first should get you a working zypper command again, to reinstall the rest of the packages. The libzypp package should be available from here: https://download.opensuse.org/update/leap/15.6/sle/x86_64/

2 Likes

Hi,

I don’t use btrfs. I use ext4. Afaik, with ext4, snapper can’t be used, right? I also have no idea how to use it at all.

But I have just managed to do the following:

rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/libboost_system1_66_0-1.66.0-12.3.1.x86_64.rpm
rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/libboost_thread1_66_0-1.66.0-12.3.1.x86_64.rpm
rpm -e libsolv-tools
rpm -e libsolv-tools-base
rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/libsolv-tools-0.7.28-150400.3.16.2.x86_64.rpm
rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/libzypp-17.32.4-150600.1.2.x86_64.rpm
rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/libboost_serialization1_66_0-1.66.0-12.3.1.x86_64.rpm
rpm -i https://rpmfind.net/linux/opensuse/distribution/leap/15.6/repo/oss/x86_64/zypper-1.14.71-150600.8.2.x86_64.rpm

This seems to give me zypper back.

I also checked the packages which have been deleted, each one individually. I reinstalled them successfully and verified their presence (zypper se -i …).

zypper up seems to work too. I received some updated packages.

Now, I’m going to try a reboot and hope for the best.

Cheers,
Paul

Yaeeeh! :rofl:

Everything seems to work again. The system comes up as if nothing ever happened and everything seems to work again.

Still, I have a follow-up question:

How can I update the libboost libraries to at least 1.72. The newer, the better, but 1.72 is the minimal version I need. I know, 1.75 is in the Leap repo but what I do has to eventually go to a SLES system. And SLES only has 1.66 in its repo.

I’d need libboost_atomic, libboost_chrono, libboost_-date_time, libboost_serialization, libboost_system and libboost_threads.

Any ideas?

What’s wrong with installing version 1.75 that is available in standard Leap 15.6 repositories?

To simplify the situations you may want to convert your system to BTRFS, it is the default for a reason…

Nothing, except that it’s not in our SLES repo and I can’t get my admins to put it into the repo. I don’t even know if they can do it. Their request to SUSE support only got a catalog of questions back why we’d need that and so on. No real help.

Besides that, I tried building all versions from 1.72 up to the current 1.88 from source. While that worked, SFCGAL was the next to fail.

If you’re wondering what I’m trying to do: I’m trying to build PostGIS 1.5 on SLES, which is a real pain. At least that would be the ultimate enemy. :rofl:

This is openSUSE forum, not SLE forum.

1 Like

Yes, I know. But I eventually have to make the same thing work on SLES.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.