Automatic update of already installed packages
Message-ID: <3A3FDF04.F630413C@hacom.nl> Date: Tue, 19 Dec 2000 23:19:48 +0100 From: "P.C. Uiterlinden" <puiterl@hacom.nl> Subject: Automatic update of already installed packages My system is SuSE 6.4 and I want to apply all the updates available in ftp://ftp.suse.com/pub/suse/i386/update/6.4/. I've already copied this whole tree to my hard disk. The problem is that I only want updates of already installed packages. If I would do something like: rpm -Uhv $(find <my_dir> -type f -name '*.rpm') then *all* packages would be installed, in stead of updating only already installed packages. Neither YaST nor rpm seems to provide the functionality I'm looking for. Am I overlooking the obvious, or what? Paul.
From: kastus@tsoft.com Date: Tue, 19 Dec 2000 15:58:38 -0800 Message-ID: <20001219155838.A1852@fizia.local> Subject: Re: [SLE] Automatic update of already installed packages On Tue, Dec 19, 2000 at 11:19:48PM +0100, P.C. Uiterlinden wrote:
My system is SuSE 6.4 and I want to apply all the updates available in ftp://ftp.suse.com/pub/suse/i386/update/6.4/. I've already copied this whole tree to my hard disk. The problem is that I only want updates of already installed packages. If I would do something like:
rpm -Uhv $(find <my_dir> -type f -name '*.rpm')
then *all* packages would be installed, in stead of updating only already installed packages.
Neither YaST nor rpm seems to provide the functionality I'm looking for. Am I overlooking the obvious, or what?
YaST shows you what packages are installed already. When you select Install Packages, then select directory, the packages in your directory which are present in your system will be marked with o (i.e. other version of the package installed). Of course, this is a manual procedure. I don't know any automatic way to do it. You may check existence of the package with rpm -qa |grep <package-name> -Kastus
Paul.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Message-ID: <3A40D2C2.81E7B1D0@ws.tn.tudelft.nl> Date: Wed, 20 Dec 2000 16:39:46 +0100 From: Erwin de Beus <erwinb@ws.tn.tudelft.nl> Subject: Re: [SLE] Automatic update of already installed packages "P.C. Uiterlinden" wrote:
My system is SuSE 6.4 and I want to apply all the updates available in ftp://ftp.suse.com/pub/suse/i386/update/6.4/. I've already copied this whole tree to my hard disk. The problem is that I only want updates of already installed packages. If I would do something like:
rpm -Uhv $(find <my_dir> -type f -name '*.rpm')
then *all* packages would be installed, in stead of updating only already installed packages.
Neither YaST nor rpm seems to provide the functionality I'm looking for. Am I overlooking the obvious, or what?
Paul.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
<p>rpm has an update mode (in newer versions it's called freshen). When used it will only update the package if it's already installed and the installed version is older than the update. I use the following to update my SuSE 7.0 machines: #!/bin/bash echo rebuild rpm database .... # I hate broken rpm databases ... rpm --rebuilddb echo "Now updating your system" find . -name "*.i386.rpm" -exec rpm -v -h --freshen {} \; SuSEconfig This is run from the directory where the rpm's are located. This directory can contain subdirectories with rpm's. Regards, Erwin de Beus -- ===================================================================== ing. Erwin de Beus Tel.: + 31 (0)15 27 83248 Delft University of Technology Fax: + 31 (0)15 27 81204 Faculty of Applied Physics e.de.beus@ws.tn.tudelft.nl Thermal and Fluids Science Section http://www.ws.tn.tudelft.nl Lorentzweg 1, 2628 CJ Delft The Netherlands =====================================================================
Erwin de Beus wrote:
rpm has an update mode (in newer versions it's called freshen). When used it will only update the package if it's already installed and the installed version is older than the update. I use the following to update my SuSE 7.0 machines:
#!/bin/bash echo rebuild rpm database .... # I hate broken rpm databases ... rpm --rebuilddb echo "Now updating your system" find . -name "*.i386.rpm" -exec rpm -v -h --freshen {} \; SuSEconfig
This is run from the directory where the rpm's are located. This directory can contain subdirectories with rpm's.
Oh yes, you're absolutely right; this is exactly what I need! And it's even in the manual page (RTFM: Read The Fine Manual), how could I have missed it: Maintaining installed packages: rpm [--install] [installoptions] [package_file]+ rpm [--freshen|-F] [installoptions] [package_file]+ rpm [--uninstall|-e] [uninstalloptions] [package]+ rpm [--verify|-V] [verifyoptions] [package]+ Thanks a lot! Paul.
participants (4)
-
erwinb@ws.tn.tudelft.nl
-
kastus@tsoft.com
-
P.C. Uiterlinden
-
puiterl@hacom.nl