Hello:

Binand Raj S. wrote,
>We have been through this before.

Yep... time to make a FAQ out of it. ;)

<FAQ>
Q. I have downloaded some new RPMS but they do not install. I get the
error that my version of RPM is old.

A. The new release of rpm is out (RPMv4) which is database incompatible
with the rpm package shipped with RedHat 6.2 (RPMv3) and earlier. You
will have to upgrade your version of rpm to RPMv4 before you can
install the new RPMS which have been created with RPMv4

Get the latest version of source rpm meant for RedHat from
http://rpmfind.net. Source RPMS (SRPMS) can be identified with the
suffix ".src.rpm". So the SRPM for "rpm" would look something like this
- rpm-4.0.4.src.rpm

RedHat Linux 7.0 ship with RPMv4.

Q. I have downloaded the latest version of rpm in the src.rpm format. How
do i compile and install it?

To compile the SRPM:
rpm --rebuild rpm-<version>.src.rpm

To upgrade:
rpm -Uvh /usr/src/redhat/RPM/i386/rpm*.rpm

To rebuild the rpm database:
rpm --initdb

You should now be able to install RPMS built with the latest version
of RPM (RPMv4)
</FAQ>

-- Shanu

>RHL 6.2 shipped with rpm 3.0.4. This could understand only RPM packages
><= RPMv3. rpm 3.0.6 (or was it rpm 3.0.5?) onwards can understand RPMv4
>packages. If you go to ftp.rpm.org, you will find SRPMS of rpm-3.0.6 in
>RPMv3 format. Install one of them and try to install RPMv4 packages.
>
>IIRC, RHL 7.0 ships with rpm 4.0.
>
>Binand

----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to