yum and postinst

Russell Coker russell at coker.com.au
Sun Feb 22 11:26:05 UTC 2004


When a package is installed and the scriptlet can't run, should the 
installation of that package be considered complete, or should I be able to 
run the scriptlet after fixing the problem?

[root at fedora-se tmp]# yum install e2fsprogs
Gathering header information file(s) from server(s)
Server: SELinux repository
Server: Fedora Core 1.90 - Development Tree
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[update: e2fsprogs 1.35-6.1.i386]
Is this ok [y/N]: y
Getting e2fsprogs-1.35-6.1.i386.rpm
e2fsprogs-1.35-6.1.i386.r 100% |=========================| 731 kB    00:06
Running test transaction:
Test transaction complete, Success!
e2fsprogs 100 % done 1/2
error: %post(e2fsprogs-1.35-6.1) scriptlet failed, exit status 255
Updated:  e2fsprogs 1.35-6.1.i386
Transaction(s) Complete
[root at fedora-se tmp]# yum install e2fsprogs
Gathering header information file(s) from server(s)
Server: SELinux repository
Server: Fedora Core 1.90 - Development Tree
Finding updated packages
Downloading needed headers
e2fsprogs is installed and is the latest version.
No actions to take

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page





More information about the devel mailing list