I'm currently attempting to package a kernel module that will be built against many released kernel rpms. The question I have is what should be set up in the spec file to make sure an RPM built against an i686 kernel RPM doesn't get installed on a machine with the athlon kernel RPM installed? Example: Computer A has kernel-2.4.18-14.i686.rpm installed, User 1 attempts to install gm-driver-2.0.11_2.4.18_14.athlon.rpm instead of gm-driver-2.0.11_2.4.18_14.i686.rpm. Is there a special syntax in the "Requires" section that will allow me to force an arch type? Maybe something like: Requires: kernel == 2.4.18-14:i686 Eventually I want to get to the point where I can use apt-get and yum to automatically install the corresponding kernel module depending on what version/arch are installed. I foresee something like this: # rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' kernel{,-smp} kernel-2.4.18-26.7.x.i686.rpm kernel-smp-2.4.20-18.7.i686.rpm # apt-get install gm gm-driver gm-driver-smp Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: gm-driver-2.4.18_26.7.x gm-driver-smp-2.4.20-18.7 gm-utils gm-doc gm-devel The following NEW packages will be installed: gm-driver-2.4.18_26.7.x gm-driver-smp-2.4.20-18.7 gm-utils gm-doc gm-devel gm gm-driver gm-driver-smp 0 packages upgraded, 8 newly installed, 0 removed and 0 not upgraded. Need to get 335kB of archives. After unpacking 1.0MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://internal redhat/8.0/i386 gm-driver-2.4.18_26.7.x 2.0.11 [20kB] Get:1 http://internal redhat/8.0/i386 gm-driver-smp-2.4.20-18.7 2.0.11 [20kB] Get:1 http://internal redhat/8.0/i386 gm-utils 2.0.11 [80kB] Get:1 http://internal redhat/8.0/i386 gm-doc 2.0.11 [100kB] Get:1 http://internal redhat/8.0/i386 gm-devel 2.0.11 [100kB] Get:1 http://internal redhat/8.0/i386 gm 2.0.11 [5kB] Get:1 http://internal redhat/8.0/i386 gm-driver 2.0.11 [5kB] Get:1 http://internal redhat/8.0/i386 gm-driver-smp 2.0.11 [5kB] Fetched 335kB in 1s (970kB/s) Executing RPM (-Uvh)... Preparing... ########################################### [100%] 1:gm-driver-2.4.18_26.7.x ########################################### [ 12%] 2:gm-driver-smp-2.4.20-18.7 ########################################### [ 25%] 3:gm-utils ########################################### [ 37%] 4:gm-doc ########################################### [ 50%] 5:gm-devel ########################################### [ 62%] 6:gm ########################################### [ 75%] 7:gm-driver ########################################### [ 87%] 8:gm-driver-smp ########################################### [100%] # rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' gm-driver-2.4.18_26.7.x gm-driver-smp-2.4.20-18.7 gm-driver-2.4.18_26.7.x.i686.rpm gm-driver-smp-2.4.20-18.7.i686.rpm Thanks, Bryan -- Bryan Stillwell, Production Engineer Aspen Systems, Inc. mailto:bryans@xxxxxxxxxx 3900 Youngfield Street Tel: +01 303 431 4606 Wheat Ridge CO 80033, USA Fax: +01 303 431 7196 http://www.aspsys.com _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list