Dependencies ignored with YUM install

Eran Ben Natan eranb at
Wed Jan 23 12:38:01 UTC 2013

Hello all,


I have a package B that requires A. When I run 'yum install B' and A
fails, B is installed anyway. Is this the right behavior? Can I change

See below my spec file and the result.


Thanks, Eran


Name: Test

Version: 1.0

Release: 1

Summary: Test



License: Some License



#BuildRoot:     %(mktemp -ud












rm -rf %{buildroot}

mkdir -p %{buildroot}/tmp/

touch %{buildroot}/tmp/A

touch %{buildroot}/tmp/B


%package -n A

Summary: Test A

%description -n A

Test A


%files -n A




%pre -n A

exit 1


%package -n B

Requires: A

Summary: Test B

%description -n B

Test B


%files -n B





rm -rf %{buildroot}




Downloading Packages:

(1/2): A-1.0-1.x86_64.rpm
| 1.6 kB     00:00

(2/2): B-1.0-1.x86_64.rpm
| 1.5 kB     00:00


150 kB/s | 3.1 kB     00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Error in PREIN scriptlet in rpm package A-1.0-1.x86_64

error: %pre(A-1.0-1.x86_64) scriptlet failed, exit status 1

error:   install: %pre scriptlet failed (2), skipping A-1.0-1

  Installing : B-1.0-1.x86_64

  Verifying  : B-1.0-1.x86_64

  Verifying  : A-1.0-1.x86_64



  B.x86_64 0:1.0-1



  A.x86_64 0:1.0-1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list