Some people here might find the following script useful: ftp://ftp.firstfloor.org/pub/ak/shell/rpmonly Typical usage would be: # rpmonly /usr/lib -i libsomething.i386.rpm ... rpmonly is a smaller wrapper around rpm that allows easy installation of only specific paths in rpms. This is useful when you want to install 32bit libraries from some 32bit RPM to fulfil some dependency. For many libraries there are the needed *-32bit compat rpms in the 64bit distribution, but not for everything and then it is useful to fetch them from the 32bit distribution. But usually the 32bit rpms come with other files that would conflict with the already installed 64bit rpms. The solution is to only get the files you want from the 32bit rpms. rpm supports this with the --exludepath function. The problem is that there is no --includepath and exluding all the paths you don't want by hand can be cumbersome in a large rpm. rpmonly auto generates the necessary options. Drawback is that you might end up with multiple rpms with the same name in your rpm database (32bit and 64bit) which can cause some confusion. So if there is already a compat rpm in the distribution better use that. -Andi
participants (1)
-
Andi Kleen