RPM spec missing uninstall section? -


i see no uninstall section in rpm spec documentation. see preun , postun.

  1. is there uninstall phase?
  2. what happens during uninstall phase? basing on %files section, list of files removed? , that's it?

correct.

the %install section of rpm spec file not run on rpm package installation (the name misleading in sense). %install section run during package creation install files need packaged such rpmbuild process can package them up.

as such, because %files section lists files , directories package contains uninstallation process rpm removal of packaged files.

if additional work needs done before or after files removed %preun , %postun scriptlets available in spec file work.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -