On 2016-10-30 03:29, Felix Miata wrote:
Carlos E. R. composed on 2016-10-30 02:14 (UTC+0200):
Felix Miata wrote:
I forgot to lock mc before updating TW installation #2 on host hpg33, resulting in 4.8.17 being replaced by 4.8.18. Nothing in between 4.8.15 and 4.8.18 exists in any openSUSE repo that I can find. https://software.opensuse.org/search returns no Midnight Commander package due to https://bugzilla.opensuse.org/show_bug.cgi?id=930505 and/or https://github.com/openSUSE/software-o-o/issues/61 or maybe neither. I have other TW installations that still have 4.8.17, including host hpg33, which unlike 4.8.18 is not broken, so I would like to be able to use it.
Is $SUBJECT possible?
You can list the contents of the rpm that was installed on hpg33 (rpm -ql mc). Then, copy all those files to a directory structure hanging from somewhere that is the same. Copy all mc files to the correct places. Then zip that structure.
It is not an rpm, but as long as no scripts are needed, you may install it successfully.
No scripts needed in what context? The 4.8.18 rpm has 5 files in INFO/SCRIPTS/
I don't know, but as there is an rpm previously installed, they were run in the past.
What about dependency fulfillment? INFO/REQUIRES/ has 27 lines.
No checking at all.
Also: # rpm -ql mc | wc -l 202
Besides being tedious, lots of those are symlinks which somehow acquire timestamps from the rpm rather than from installation on the target.
Well, as you are overwriting an rpm, the symlinks already exist. You might writeup a script using that list.
I created an archive like you suggested, but then only copied selected files out to the target using mc, those with different filesizes in most locations, but the whole of /usr/lib/mc/. It opens OK, which 4.8.18 does not[1], but I wonder if any booby traps lurk?
I don't think so... however, if you computer catches fire, I know nothing :-p Otherwise... pick up the sources, build and "make install".
[1] https://mail.gnome.org/archives/mc/2016-October/msg00008.html
Ugh. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)