Working with RPM and Related Problems

Note

You may want to have a look at http://susefaq.sourceforge.net/articles/rpm.html for a quick reminder of rpm commands

1. When will SuSE include support for RPM version 4 ?
2. Is there any documentation on how SuSE builds the RPM packages for various software ?
3. Is there any tools for building the RPM packages for various software suitable for SuSE?
4. The installer is asking for a specific file and complains that with that file install will not be done. How can I find in which rpm this file is ?

1. When will SuSE include support for RPM version 4 ?

The rpm version since SuSE 7.1, RPM version 3.0.6, is capable of installing 4.0 rpms.

2. Is there any documentation on how SuSE builds the RPM packages for various software ?

The document that describes the process is maintained by Mads Martin Jorgensen and can be found here .

3. Is there any tools for building the RPM packages for various software suitable for SuSE?

Applies to SuSE 8.0

There is a package called build in series d. This package provides the script /opt/SuSE/bin/build. With this script you can build RPMs for SuSE Linux in a chroot environment.

4. The installer is asking for a specific file and complains that with that file install will not be done. How can I find in which rpm this file is ?

If you don't find a script then the following method can be used. (ARCHIVES.gz is e.g. on SuSE CD1)

      zcat /media/cdrecorder/ARCHIVES.gz \ | egrep
      'libexpat.so.1|libmcrypt.so.4|libpdf.so.0|libpq.so.2.1|libsablot.so.0|libt1.so.1' 
      \ | awk '{print $1,$9;}' ./CD4/suse/d3/pdflib.rpm: /usr/lib/libpdf.so
      ./CD4/suse/d3/pdflib.rpm: /usr/lib/libpdf.so.0 ./CD4/suse/d3/pdflib.rpm:
      /usr/lib/libpdf.so.0.1.1 ./CD3/suse/gra2/t1lib-devel.rpm:
      /usr/lib/libt1.so ./CD3/suse/gra2/t1lib.rpm: /usr/lib/libt1.so.1
      ./CD3/suse/gra2/t1lib.rpm: /usr/lib/libt1.so.1.1.0
      ./CD2/suse/sec2/libmcrypt.rpm: /usr/lib/libmcrypt.so
      ./CD2/suse/sec2/libmcrypt.rpm: /usr/lib/libmcrypt.so.4
      ./CD2/suse/sec2/libmcrypt.rpm: /usr/lib/libmcrypt.so.4.2.6
      ./CD2/suse/ap2/postgresql-lib.rpm: /usr/lib/libpq.so
      ./CD2/suse/ap2/postgresql-lib.rpm: /usr/lib/libpq.so.2
      ./CD2/suse/ap2/postgresql-lib.rpm: /usr/lib/libpq.so.2.0
      ./CD2/suse/ap2/postgresql-lib.rpm: /usr/lib/libpq.so.2.1
      ./CD2/suse/sgm1/sablot-devel.rpm: /usr/lib/libsablot.so
      ./CD2/suse/sgm1/expat.rpm: /usr/lib/libexpat.so.1
      ./CD2/suse/sgm1/expat.rpm: /usr/lib/libexpat.so.1.2
      ./CD2/suse/sgm1/sablot.rpm: /usr/lib/libsablot.so.0
      ./CD2/suse/sgm1/sablot.rpm: /usr/lib/libsablot.so.0.51.0
    

If you skip the awk command then you'll get additional information about e.g. symbolic links. Just put write the files you are looking for after the egrep command

Applies to SuSE version 8.0

There is a package called pin in the SuSE 8.0 which provides a nice search opportunity for searching the ARCHIEVES.gz. If you have not installed it first installs it an the first time it runs it copies the ARCHIEVES.gz file from the CD/DVD and then when you type pin you have an interface for searching the file you are looking for.

Copyright 2002-2003 Togan Muftuoglu