Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 177 #203
i
i
i
i
i
i
i
i
5
Updating the System and Package Management
However, since SUSE 8.1, the SUSE RPM offers a new feature enabling the
installation of patches in packages.
The most important considerations are demonstrated using pine as an ex-
ample:
Is the patch RPM suitable for my system?
To check this, first query the installed version of the package. For
pine, this can be done with
rpm -q pine
pine-4.44-188
Then check if the patch RPM is suitable for this version of pine:
rpm -qp --basedon pine-4.44-224.i586.patch.rpm
pine = 4.44-188
pine = 4.44-195
pine = 4.44-207
This patch is suitable for three different versions of pine. The in-
stalled version in the example is also listed, so the patch can be in-
stalled.
Which files are replaced by the patch?
The files affected by a patch can easily be seen in the patch RPM. The
rpm parameter -P allows selection of special patch features. Display
the list of files with the following command:
rpm -qpPl pine-4.44-224.i586.patch.rpm
/etc/pine.conf
/etc/pine.conf.fixed
/usr/bin/pine
or, if the patch is already installed, with the following command:
rpm -qPl pine
/etc/pine.conf
/etc/pine.conf.fixed
/usr/bin/pine
How can a patch RPM be installed in the system?
Patch RPMs are used just like normal RPMs. The only difference is
that a suitable RPM must already be installed.
177SUSE LINUX Enterprise Server