Update variable handling text file added

This commit is contained in:
2019-02-22 09:55:17 +01:00
parent e800a53995
commit aff2b9423e

35
update-rpm-handle.txt Normal file
View File

@@ -0,0 +1,35 @@
# 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