From aff2b9423e8188f97695ee244910a689f57f23b1 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 22 Feb 2019 09:55:17 +0100 Subject: [PATCH] Update variable handling text file added --- update-rpm-handle.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 update-rpm-handle.txt diff --git a/update-rpm-handle.txt b/update-rpm-handle.txt new file mode 100644 index 0000000..1401727 --- /dev/null +++ b/update-rpm-handle.txt @@ -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 +