Subject: rpm vs rpm2pkg
To: None <netbsd-help@netbsd.org>
From: Germano Cesari <u56237z@hotmail.com>
List: port-i386
Date: 12/30/2004 08:54:09
as I said in my last post, I can't install any rmp.. I always get:
drusilla# alias rpm rpm --root /usr/pkg/emul/linux --dbpath /var/pkg/lib/rpm
drusilla# rpm -i --ignoreos --ignorearch --nodeps WHATEVER.RPM
error creating temporary file /usr/pkg/emul/linux/var/tmp/rpm-tmp.2536
rpm in free(): warning: junk pointer, too high to make sense.
error: WHATEVER.RPM cannot be installed
..and its still like that.. even via FTP..
However, I have no probelm installing any rpm using rpm2pkg, with something
like:
rpm2pkg -d /usr/pkg/emul/linux /PATH/WHATEVER.RPM
I get everything decompressed in the right place, no output, just works
fine..
just 2 questions:
- does rpm2pkg register the rpm in some db? as far as I saw, a package.rpm
file has been touched, but if I ask 'rpm -qa' (with that dbpath of course),
it says no rpm has been installed (in case, may I register the rpm myself?
is there a reason to do that?)
- may I assume I have a problem with the rpm executable I built via pkgsrc?
or is it normal for rpm to always give that kind of errors?
- is there a reason why should anyone consider bothering with rpm, since
rpm2pkg works?
Germano