# What happens, if we install, update, deinstall RPM packages with $1 variable: ### install: # rpm -ivh /usr/src/packages/RPMS/i586/test-0.0.0-01.tvd.sles10.i586.rpm Preparing... ########################################### [100%] Pre: 1 1:test ########################################### [100%] Post: 1 root@xen-pkg-sles10-32 09:27 AM [ /usr/src/packages ] ### update: # rpm -Uvh /usr/src/packages/RPMS/i586/test-0.0.0-02.tvd.sles10.i586.rpm Preparing... ########################################### [100%] Pre: 2 1:test ########################################### [100%] Post: 2 Preun: 1 Postun: 1 ### update: root@xen-pkg-sles10-32 09:28 AM [ /usr/src/packages ] # rpm -Uvh /usr/src/packages/RPMS/i586/test-0.0.0-03.tvd.sles10.i586.rpm Preparing... ########################################### [100%] Pre: 2 1:test ########################################### [100%] Post: 2 Preun: 1 Postun: 1 ### deinstallation: root@xen-pkg-sles10-32 09:28 AM [ /usr/src/packages ] # rpm -e test Preun: 0 Postun: 0