Re: how to check on upgrade rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-12-17 at 07:41 -0600, Jon Ciesla wrote:
> Check this out:
> 
> http://docs.fedoraproject.org/drafts/rpm-guide-en/ch09s04.html#id2972291
> 
> You can create a script to test if it's an upgrade and if it is, remove 
> the install.  Such as:
> 
> %post
> 
> if [ "$1" = 2 ]; then
> 
> rm -rf /path/to/install/thingy
> 
> fi
> 
> exit 0
> 

I didn't know about that yet, thanks! Works like a charm. The %ghost
line made yum complain a lot when installing the rpm, so i just left the
subdir out and included everything in the toplevel dir. Don't know why i
specified each subdir seperately in %files. 


-- 
Léon

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux