[haiku-development] Re: downgrade a package

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 14 Feb 2014 11:14:14 +0100

On 02/12/2014 07:35 PM, Jérôme Duval wrote:
libxml2-2.9.1 is part of the x86 repository but declared broken on HaikuPorts.
I have two questions on that:
1/ How to change back to libxml2-2.8.0 in the repository?

I suppose you mean the HaikuPorts package repository (as opposed to any source repository). You perform exactly the same steps as when replacing a package with a newer version.

2/ How to downgrade a package on an installation?

That's a good question. I think "pkgman update libxml2" would not actually replace the newer version with the old one. Maybe explicitly specifying the version (i.e. "libxml2-2.8.0") would. I haven't checked that, nor how that would be done e.g. with zypper on openSUSE.

The recently introduced "pkgman full-sync" (equivalent to "zypper dist-upgrade") would do that. It synchronizes the state of all installed packages with that of the active repositories, including downgrading and removing packages, if necessary. Individual packages cannot be specified.

I'm unaware of how HaikuDepot works and whether it would be possible to downgrade a given package with it.

I believe, it should be possible to download the new package and manually move it to /system/packages. The package daemon should point out the conflict and offer as one solution to remove the old libxml2 package.

CU, Ingo


Other related posts: