RPM spec missing uninstall section? -
i see no uninstall section in rpm spec documentation. see preun , postun.
- is there uninstall phase?
- 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
Post a Comment